Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Duration
Interface Duration
Index
Methods
asDays
asHours
asMilliseconds
asMinutes
asMonths
asSeconds
asYears
days
hours
humanize
milliseconds
minutes
months
seconds
subtract
years
Methods
public
asDays
(
)
:
number
Returns
number
public
asHours
(
)
:
number
Returns
number
public
asMilliseconds
(
)
:
number
Returns
number
public
asMinutes
(
)
:
number
Returns
number
public
asMonths
(
)
:
number
Returns
number
public
asSeconds
(
)
:
number
Returns
number
public
asYears
(
)
:
number
Returns
number
public
days
(
)
:
number
Returns
number
public
hours
(
)
:
number
Returns
number
public
humanize
(
)
:
string
Returns
string
public
milliseconds
(
)
:
number
Returns
number
public
minutes
(
)
:
number
Returns
number
public
months
(
)
:
number
Returns
number
public
seconds
(
)
:
number
Returns
number
public
subtract
(
n
:
number
, p
:
string
)
:
Duration
Parameters
n:
number
p:
string
Returns
Duration
public
subtract
(
n
:
number
)
:
Duration
Parameters
n:
number
Returns
Duration
public
subtract
(
d
:
Duration
)
:
Duration
Parameters
d:
Duration
Returns
Duration
public
years
(
)
:
number
Returns
number
Globals
moment