Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/time
DateTime
Class DateTime
Hierarchy
DateTime
Implements
Interpolate
<
DateTime
>
HashCode
Equivalent
Compare
Display
Index
Constructors
constructor
Properties
time
zone
Accessors
day
hour
millisecond
minute
month
second
weekday
year
Methods
compare
To
display
equals
equivalent
To
hash
Code
interpolate
To
is
Defined
to
Date
to
String
value
Of
with
Day
with
Hour
with
Millisecond
with
Minute
with
Month
with
Second
with
Year
current
form
from
Any
from
Init
from
Value
parse
time
zone
Constructors
constructor
new
Date
Time
(
time
:
number
, zone
?:
TimeZone
)
:
DateTime
Parameters
time:
number
zone:
TimeZone
= ...
Returns
DateTime
Properties
Readonly
time
time
:
number
Readonly
zone
zone
:
TimeZone
Accessors
day
get
day
(
)
:
number
Returns
number
hour
get
hour
(
)
:
number
Returns
number
millisecond
get
millisecond
(
)
:
number
Returns
number
minute
get
minute
(
)
:
number
Returns
number
month
get
month
(
)
:
number
Returns
number
second
get
second
(
)
:
number
Returns
number
weekday
get
weekday
(
)
:
number
Returns
number
year
get
year
(
)
:
number
Returns
number
Methods
compare
To
compare
To
(
that
:
unknown
)
:
number
Parameters
that:
unknown
Returns
number
display
display
(
output
:
Output
<
unknown
>
, format
?:
DateTimeFormat
)
:
void
Parameters
output:
Output
<
unknown
>
format:
DateTimeFormat
= ...
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
AnyDateTime
, epsilon
?:
number
)
:
boolean
Parameters
that:
AnyDateTime
Optional
epsilon:
number
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
interpolate
To
interpolate
To
(
that
:
DateTime
)
:
Interpolator
<
DateTime
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
DateTime
>
Parameters
that:
DateTime
Returns
Interpolator
<
DateTime
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
DateTime
>
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
to
Date
to
Date
(
)
:
Date
Returns
Date
to
String
to
String
(
format
?:
DateTimeFormat
)
:
string
Parameters
format:
DateTimeFormat
= ...
Returns
string
value
Of
value
Of
(
)
:
number
Returns
number
with
Day
with
Day
(
day
:
number
, hour
?:
number
, minute
?:
number
, second
?:
number
, millisecond
?:
number
)
:
DateTime
Parameters
day:
number
Optional
hour:
number
Optional
minute:
number
Optional
second:
number
Optional
millisecond:
number
Returns
DateTime
with
Hour
with
Hour
(
hour
:
number
, minute
?:
number
, second
?:
number
, millisecond
?:
number
)
:
DateTime
Parameters
hour:
number
Optional
minute:
number
Optional
second:
number
Optional
millisecond:
number
Returns
DateTime
with
Millisecond
with
Millisecond
(
millisecond
:
number
)
:
DateTime
Parameters
millisecond:
number
Returns
DateTime
with
Minute
with
Minute
(
minute
:
number
, second
?:
number
, millisecond
?:
number
)
:
DateTime
Parameters
minute:
number
Optional
second:
number
Optional
millisecond:
number
Returns
DateTime
with
Month
with
Month
(
month
:
number
, day
?:
number
, hour
?:
number
, minute
?:
number
, second
?:
number
, millisecond
?:
number
)
:
DateTime
Parameters
month:
number
Optional
day:
number
Optional
hour:
number
Optional
minute:
number
Optional
second:
number
Optional
millisecond:
number
Returns
DateTime
with
Second
with
Second
(
second
:
number
, millisecond
?:
number
)
:
DateTime
Parameters
second:
number
Optional
millisecond:
number
Returns
DateTime
with
Year
with
Year
(
year
:
number
, month
?:
number
, day
?:
number
, hour
?:
number
, minute
?:
number
, second
?:
number
, millisecond
?:
number
)
:
DateTime
Parameters
year:
number
Optional
month:
number
Optional
day:
number
Optional
hour:
number
Optional
minute:
number
Optional
second:
number
Optional
millisecond:
number
Returns
DateTime
Static
current
current
(
zone
?:
AnyTimeZone
)
:
DateTime
Parameters
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
form
form
(
)
:
Form
<
DateTime
,
AnyDateTime
>
Returns
Form
<
DateTime
,
AnyDateTime
>
Static
from
Any
from
Any
(
value
:
AnyDateTime
, zone
?:
AnyTimeZone
)
:
DateTime
Parameters
value:
AnyDateTime
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
from
Init
from
Init
(
init
:
DateTimeInit
, zone
?:
AnyTimeZone
)
:
DateTime
Parameters
init:
DateTimeInit
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
DateTime
Parameters
value:
Value
Returns
null
|
DateTime
Static
parse
parse
(
date
:
string
, zone
?:
AnyTimeZone
)
:
DateTime
Parameters
date:
string
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
time
time
(
date
:
AnyDateTime
)
:
number
Parameters
date:
AnyDateTime
Returns
number
Static
zone
zone
(
date
:
AnyDateTime
)
:
TimeZone
Parameters
date:
AnyDateTime
Returns
TimeZone
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Date
Time
constructor
time
zone
day
hour
millisecond
minute
month
second
weekday
year
compare
To
display
equals
equivalent
To
hash
Code
interpolate
To
is
Defined
to
Date
to
String
value
Of
with
Day
with
Hour
with
Millisecond
with
Minute
with
Month
with
Second
with
Year
current
form
from
Any
from
Init
from
Value
parse
time
zone
Generated using
TypeDoc