Skip to content

Commit

Permalink
docs(todayLocal): document todayLocal function
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jan 25, 2024
1 parent 52c7792 commit f765058
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ export function todayUtc(): Date {
};
}

/**
* Returns today's date, according to the device's local timezone.
*/
export function todayLocal(): Date {
const today = new JsDate();
return {
Expand Down

0 comments on commit f765058

Please sign in to comment.