Class: Timestamp
time-utilities/src.Timestamp
Constructors
constructor
• new Timestamp(pattern
)
Parameters
Name | Type | Description |
---|---|---|
pattern | string |
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
Name | Type | Description |
---|---|---|
time? | TimeResolvable |
Returns
string
Defined in
node_modules/@sapphire/timestamp/dist/index.d.ts:43
displayUTC
▸ displayUTC(time?
): string
Parameters
Name | Type | Description |
---|---|---|
time? | TimeResolvable |
Returns
string
Defined in
node_modules/@sapphire/timestamp/dist/index.d.ts:49
edit
▸ edit(pattern
): Timestamp
Parameters
Name | Type | Description |
---|---|---|
pattern | string |
Returns
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
Name | Type | Description |
---|---|---|
pattern | string | |
time? | TimeResolvable |
Returns
string
Defined in
node_modules/@sapphire/timestamp/dist/index.d.ts:67
displayUTCArbitrary
▸ Static
displayUTCArbitrary(pattern
, time?
): string
Parameters
Name | Type | Description |
---|---|---|
pattern | string | |
time? | TimeResolvable |
Returns
string
Defined in
node_modules/@sapphire/timestamp/dist/index.d.ts:74
utc
▸ Static
utc(time?
): Date
Parameters
Name | Type | Description |
---|---|---|
time? | string | number | Date |
Returns
Date
Defined in
node_modules/@sapphire/timestamp/dist/index.d.ts:80