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
|
Constructs a BsonDate from the given date value .
|
this
|
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
|
Constructs a BsonDate from the given date/time in standard time as defined in std.datetime.
|
fromString
|
Constructs a BsonDate from the given date/time string in ISO extended format.
|
opCmp
|
Allows relational and equality comparisons. |
opEquals
|
Allows relational and equality comparisons. |
toString
|
Returns the date formatted as ISO extended format. |
toSysTime
|
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.