Struct BsonDate
Represents a BSON date value (Bson.Type.date
).
BSON date values are stored in UNIX time format, counting the number of
milliseconds from 1970/01/01.
Constructors
Name | Description |
this
(date, tz)
|
Constructs a BsonDate from the given date value.
|
this
(unix_time)
|
Constructs a BsonDate from the given UNIX time.
|
Properties
Name | Type | Description |
value [get, set]
|
long | The raw unix time value.
|
Methods
Name | Description |
fromStdTime
(std_time)
|
Constructs a BsonDate from the given date/time in standard time as defined in std.datetime .
|
fromString
(iso_ext_string)
|
Constructs a BsonDate from the given date/time string in ISO extended format.
|
opCmp
(other)
|
Allows relational and equality comparisons.
|
opEquals
(other)
|
Allows relational and equality comparisons.
|
toString
()
|
Returns the date formatted as ISO extended format.
|
toSysTime
()
|
|
toSysTime
(tz)
|
|