Preparing search index...
The search index is not available
@tarpit/dora
@tarpit/dora
Dora
Class Dora
Hierarchy
Dora
Index
Constructors
constructor
Properties
$D
$H
$M
$W
$d
$m
$ms
$s
$utc
Offset
$y
$z
DATE_
TIME_
FORMAT_
MATCHES
Methods
add
clone
date
day
days_
in_
month
dial_
utc_
offset
end_
of
format
get
hour
millisecond
minute
month
second
set
start_
of
subtract
timezone
to
String
utc_
offset
value
Of
year
from
guess_
timezone
now
parse
Constructors
constructor
new
Dora
(
ts
,
timezone
?
)
:
Dora
Parameters
ts
:
number
Optional
timezone
:
string
Returns
Dora
Properties
$D
$D
:
number
$H
$H
:
number
$M
$M
:
number
$W
$W
:
number
Readonly
$d
$d
:
Date
$m
$m
:
number
$ms
$ms
:
number
$s
$s
:
number
Readonly
$utc
Offset
$utc
Offset
:
number
$y
$y
:
number
Private
Readonly
$z
$z
:
string
Static
DATE_
TIME_
FORMAT_
MATCHES
DATE_
TIME_
FORMAT_
MATCHES
:
Record
<
string
,
(
(
dora
)
=>
string
)
>
= ...
Type declaration
(
dora
)
:
string
Parameters
dora
:
Dora
Returns
string
Methods
add
add
(
int
,
unit
)
:
Dora
Parameters
int
:
number
unit
:
DateTimeUnit
Returns
Dora
clone
clone
(
)
:
Dora
Returns
Dora
date
date
(
)
:
number
Returns
number
date
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
day
day
(
)
:
number
Returns
number
day
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
days_
in_
month
days_
in_
month
(
)
:
number
Returns
number
Private
dial_
utc_
offset
dial_
utc_
offset
(
)
:
Dora
Returns
Dora
end_
of
end_
of
(
unit
)
:
Dora
Parameters
unit
:
"day"
|
"hour"
|
"minute"
|
"month"
|
"second"
|
"year"
|
"week"
|
"date"
|
"isoWeek"
Returns
Dora
format
format
(
format
?
)
:
string
Parameters
format
:
string
= DEFAULT_FORMAT
Returns
string
get
get
(
unit
)
:
number
Parameters
unit
:
DateTimeUnit
Returns
number
hour
hour
(
)
:
number
Returns
number
hour
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
millisecond
millisecond
(
)
:
number
Returns
number
millisecond
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
minute
minute
(
)
:
number
Returns
number
minute
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
month
month
(
)
:
number
Returns
number
month
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
second
second
(
)
:
number
Returns
number
second
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
set
set
(
unit
,
int
)
:
Dora
Parameters
unit
:
DateTimeUnit
int
:
number
Returns
Dora
start_
of
start_
of
(
unit
)
:
Dora
Parameters
unit
:
"week"
|
DateTimeUnit
|
"isoWeek"
Returns
Dora
subtract
subtract
(
int
,
unit
)
:
Dora
Parameters
int
:
number
unit
:
DateTimeUnit
Returns
Dora
timezone
timezone
(
)
:
string
Returns
string
timezone
(
str
)
:
Dora
Parameters
str
:
string
Returns
Dora
to
String
to
String
(
)
:
string
Returns
string
utc_
offset
utc_
offset
(
)
:
number
Returns
number
value
Of
value
Of
(
)
:
number
Returns
number
year
year
(
)
:
number
Returns
number
year
(
int
)
:
Dora
Parameters
int
:
number
Returns
Dora
Static
from
from
(
date_arr
,
timezone
?
)
:
Dora
Parameters
date_arr
:
DateTimeArray
Optional
timezone
:
string
Returns
Dora
Static
guess_
timezone
guess_
timezone
(
)
:
string
Returns
string
Static
now
now
(
timezone
?
)
:
Dora
Parameters
Optional
timezone
:
string
Returns
Dora
Static
parse
parse
(
date_str
)
:
Dora
Parameters
date_str
:
string
Returns
Dora
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
src
dora.ts
Dora
Generated using
TypeDoc