Skip to main content

@sapphire/time-utilities

Enumerations

EnumerationDescription
Time-
TimeTypesThe supported time types

Classes

ClassDescription
CronHandles Cron strings and generates dates based on the cron string provided.
DurationConverts duration strings into ms and future dates
DurationFormatterDisplay the duration
TimerManagerManages timers so that this application can be cleanly exited
TimestampTimestamp class, parses the pattern once, displays the desired Date or UNIX timestamp with the selected pattern.

Interfaces

InterfaceDescription
DurationFormatAssetsTime-
DurationFormatAssetsUnit-
DurationFormatSeparators-
TimestampTemplateEntry-

Type Aliases

Type aliasDescription
TimeResolvable-

Variables

VariableDescription
DEFAULT_SEPARATORS-
DEFAULT_UNITS-
allowedNum-
cronTokens-
days-
months-
partRegex-
predefined-
tokens-
tokensRegex-
wildcardRegex-