Skip to main content

Class: Duration

time-utilities/src.Duration

Constructors

constructor

new Duration(pattern)

Parameters

NameTypeDescription
patternstring

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:64

Properties

offset

offset: number

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:59


kAanRegex

Static Private Readonly kAanRegex: any

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:85


kCommaRegex

Static Private Readonly kCommaRegex: any

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:81


kPatternRegex

Static Private Readonly kPatternRegex: any

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:77


parse

Static Private parse: any

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:90

Accessors

fromNow

get fromNow(): Date

Returns

Date

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:68

Methods

dateFrom

dateFrom(date): Date

Parameters

NameTypeDescription
dateDate

Returns

Date

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:73