Static
Readonly
bigThe start time as a bigInt
The duration as a human-readable string
Static
Readonly
currentUTCDateReturns the current date in UTC
The current date in UTC
Static
Readonly
currentUTCTimeReturns the current time in UTC
The current time in UTC
Static
Readonly
discordReturns a Discord-formatted timestamp with both relative and absolute time
The timestamp to format
The formatted timestamp string
Static
Readonly
discordReturns a Discord-formatted timestamp
The timestamp to format
The style of the timestamp
The formatted timestamp string
Static
Readonly
discordReturns the current time as a Discord-formatted timestamp
The style of the timestamp
The formatted timestamp string
Static
Readonly
formatterReturns a formatter for a given (discord.js) locale
The locale to format the date for
Optional
options: DateTimeFormatOptionsThe formatting options, if any
The date formatter
Static
Readonly
hrConverts a hrTime tuple to milliseconds
The hrTime tuple
The time in milliseconds
Static
Readonly
humanConverts milliseconds to a human-readable format
The time in milliseconds
The maximum number of time units to include
A human-readable string
Static
Readonly
occurrencesCalculates the average number of occurrences per interval
The dates to calculate the occurrences from
The interval to calculate the average for
The average number of occurrences per interval
Static
Readonly
unixReturns a Unix timestamp from a JavaScript timestamp
The JavaScript timestamp
The Unix timestamp
Static
Readonly
unixReturns the current time as a Unix timestamp
The current Unix timestamp
Displays the duration of a bigInt since a given
start
time