Functions
createStopWatch
- createStopWatch(): { getDiff: any; getDiffMs: any }
-
Returns { getDiff: any; getDiffMs: any }
-
getDiff: function
-
getDiffMs: function
dateAgo
- dateAgo(value: number | string | Date): number | string | Date
-
Parameters
-
value: number | string | Date
Returns number | string | Date
formatTime
- formatTime(date: Date, pattern: string): string
-
Parameters
-
date: Date
-
pattern: string
Returns string
getEndOfTheDay
- getEndOfTheDay(date: Date): Date
getEndOfTheHour
- getEndOfTheHour(date: Date): Date
getStartOfTheDay
- getStartOfTheDay(date: Date): Date
getStartOfTheHour
- getStartOfTheHour(date: Date): Date