Skip to content

Commit

Permalink
docs(todayUtc): document todayUtc function
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jan 25, 2024
1 parent e7a254c commit 52c7792
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 @@ -633,6 +633,9 @@ export function latestFn<T extends DateOptions, U extends DateOptions>(b: U): (a
*/
export const latestDateFn = latestFn;

/**
* Returns today's date, UTC.
*/
export function todayUtc(): Date {
const today = new JsDate();
return {
Expand Down

0 comments on commit 52c7792

Please sign in to comment.