Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/time
DateTime
Class DateTime
Hierarchy
DateTime
Implements
Comparable
<
AnyDateTime
>
HashCode
Display
Index
Constructors
constructor
Methods
compare
To
day
display
equals
hash
Code
hour
millisecond
minute
month
second
time
to
Date
to
String
value
Of
weekday
year
zone
current
form
from
from
Any
from
Value
parse
time
zone
Constructors
constructor
new
Date
Time
(
time
:
number
, zone
?:
TimeZone
)
:
DateTime
Parameters
time:
number
Default value
zone:
TimeZone
= TimeZone.utc()
Returns
DateTime
Methods
compare
To
compare
To
(
that
:
AnyDateTime
)
:
number
Parameters
that:
AnyDateTime
Returns
number
day
day
(
)
:
number
day
(
day
:
number
, hour
?:
undefined
|
number
, minute
?:
undefined
|
number
, second
?:
undefined
|
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
day:
number
Optional
hour:
undefined
|
number
Optional
minute:
undefined
|
number
Optional
second:
undefined
|
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
display
display
(
output
:
Output
, format
?:
DateTimeFormat
)
:
void
Parameters
output:
Output
Default value
format:
DateTimeFormat
= DateTime.Format.iso8601()
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
hour
hour
(
)
:
number
hour
(
hour
:
number
, minute
?:
undefined
|
number
, second
?:
undefined
|
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
hour:
number
Optional
minute:
undefined
|
number
Optional
second:
undefined
|
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
millisecond
millisecond
(
)
:
number
millisecond
(
millisecond
:
number
)
:
DateTime
Returns
number
Parameters
millisecond:
number
Returns
DateTime
minute
minute
(
)
:
number
minute
(
minute
:
number
, second
?:
undefined
|
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
minute:
number
Optional
second:
undefined
|
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
month
month
(
)
:
number
month
(
month
:
number
, day
?:
undefined
|
number
, hour
?:
undefined
|
number
, minute
?:
undefined
|
number
, second
?:
undefined
|
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
month:
number
Optional
day:
undefined
|
number
Optional
hour:
undefined
|
number
Optional
minute:
undefined
|
number
Optional
second:
undefined
|
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
second
second
(
)
:
number
second
(
second
:
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
second:
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
time
time
(
)
:
number
time
(
time
:
number
)
:
DateTime
Returns
number
Parameters
time:
number
Returns
DateTime
to
Date
to
Date
(
)
:
Date
Returns
Date
to
String
to
String
(
format
?:
DateTimeFormat
)
:
string
Parameters
Default value
format:
DateTimeFormat
= DateTime.Format.iso8601()
Returns
string
value
Of
value
Of
(
)
:
number
Returns
number
weekday
weekday
(
)
:
number
Returns
number
year
year
(
)
:
number
year
(
year
:
number
, month
?:
undefined
|
number
, day
?:
undefined
|
number
, hour
?:
undefined
|
number
, minute
?:
undefined
|
number
, second
?:
undefined
|
number
, millisecond
?:
undefined
|
number
)
:
DateTime
Returns
number
Parameters
year:
number
Optional
month:
undefined
|
number
Optional
day:
undefined
|
number
Optional
hour:
undefined
|
number
Optional
minute:
undefined
|
number
Optional
second:
undefined
|
number
Optional
millisecond:
undefined
|
number
Returns
DateTime
zone
zone
(
)
:
TimeZone
zone
(
zone
:
TimeZone
)
:
DateTime
Returns
TimeZone
Parameters
zone:
TimeZone
Returns
DateTime
Static
current
current
(
zone
?:
AnyTimeZone
)
:
DateTime
Parameters
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
form
form
(
unit
?:
AnyDateTime
)
:
Form
<
DateTime
,
AnyDateTime
>
Parameters
Optional
unit:
AnyDateTime
Returns
Form
<
DateTime
,
AnyDateTime
>
Static
from
from
(
init
:
DateTimeInit
, zone
?:
AnyTimeZone
)
:
DateTime
Parameters
init:
DateTimeInit
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
from
Any
from
Any
(
date
:
AnyDateTime
, zone
?:
AnyTimeZone
)
:
DateTime
Parameters
date:
AnyDateTime
Optional
zone:
AnyTimeZone
Returns
DateTime
Static
from
Value
from
Value
(
value
:
Value
)
:
DateTime
|
undefined
Parameters
value:
Value
Returns
DateTime
|
undefined
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
Globals
@swim/core
@swim/codec
@swim/collections
@swim/dataflow
@swim/math
@swim/recon
@swim/streamlet
@swim/structure
@swim/time
@swim/uri
@swim/util
@swim/mesh
@swim/ui
@swim/ux
@swim/web
Date
Time
constructor
compare
To
day
display
equals
hash
Code
hour
millisecond
minute
month
second
time
to
Date
to
String
value
Of
weekday
year
zone
current
form
from
from
Any
from
Value
parse
time
zone
Date
Time
Format
Date
Time
Locale
Time
Interval
Time
Zone
Unit
Time
Interval
Date
Time
Init
Date
Time
Specifiers
Any
Date
Time
Any
Time
Zone
Date
Time
Specifiers