Skip to main content

Class: Timestamp

time-utilities/src.Timestamp

Constructors

constructor

new Timestamp(pattern)

Parameters

NameTypeDescription
patternstring

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:37

Properties

pattern

pattern: string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:27


template

Private template: any

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:31


display

Static Private display: any

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:87


parse

Static Private parse: any

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:93


resolveDate

Static Private resolveDate: any

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:99

Methods

display

display(time?): string

Parameters

NameTypeDescription
time?TimeResolvable

Returns

string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:43


displayUTC

displayUTC(time?): string

Parameters

NameTypeDescription
time?TimeResolvable

Returns

string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:49


edit

edit(pattern): Timestamp

Parameters

NameTypeDescription
patternstring

Returns

Timestamp

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:56


toString

toString(): string

Returns

string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:60


displayArbitrary

Static displayArbitrary(pattern, time?): string

Parameters

NameTypeDescription
patternstring
time?TimeResolvable

Returns

string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:67


displayUTCArbitrary

Static displayUTCArbitrary(pattern, time?): string

Parameters

NameTypeDescription
patternstring
time?TimeResolvable

Returns

string

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:74


utc

Static utc(time?): Date

Parameters

NameTypeDescription
time?string | number | Date

Returns

Date

Defined in

node_modules/@sapphire/timestamp/dist/index.d.ts:80