Preparing search index...
The search index is not available
duration
duration
Formatter
Class Formatter
Hierarchy
Formatter
Index
Constructors
constructor
Properties
patterns
separator
unit
Format
Methods
format
set
Format
set
Patterns
set
Separator
Constructors
constructor
new
Formatter
(
__namedParameters
?:
formatterOptions
)
:
Formatter
Parameters
__namedParameters:
formatterOptions
= {}
Returns
Formatter
Properties
patterns
patterns
:
readonly
(
"day"
|
"hour"
|
"minute"
|
"month"
|
"second"
|
"year"
|
"week"
|
"y"
|
"mo"
|
"w"
|
"d"
|
"h"
|
"min"
|
"m"
|
"s"
|
"millisecond"
|
"milli"
|
"ms"
)
[]
separator
separator
:
string
unit
Format
unit
Format
:
"long"
|
"short"
Methods
format
format
(
ms
:
number
)
:
undefined
|
string
Parameters
ms:
number
Returns
undefined
|
string
set
Format
set
Format
(
format
:
"long"
|
"short"
)
:
Formatter
Parameters
format:
"long"
|
"short"
Returns
Formatter
set
Patterns
set
Patterns
(
patterns
:
readonly
(
"day"
|
"hour"
|
"minute"
|
"month"
|
"second"
|
"year"
|
"week"
|
"y"
|
"mo"
|
"w"
|
"d"
|
"h"
|
"min"
|
"m"
|
"s"
|
"millisecond"
|
"milli"
|
"ms"
)
[]
)
:
Formatter
Parameters
patterns:
readonly
(
"day"
|
"hour"
|
"minute"
|
"month"
|
"second"
|
"year"
|
"week"
|
"y"
|
"mo"
|
"w"
|
"d"
|
"h"
|
"min"
|
"m"
|
"s"
|
"millisecond"
|
"milli"
|
"ms"
)
[]
Returns
Formatter
set
Separator
set
Separator
(
separator
:
string
)
:
Formatter
Parameters
separator:
string
Returns
Formatter
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
duration
Formatter
constructor
patterns
separator
unit
Format
format
set
Format
set
Patterns
set
Separator
Generated using
TypeDoc