vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

Struct BsonDate

Represents a BSON date value (Bson.Type.date).

struct BsonDate ;

BSON date values are stored in UNIX time format, counting the number of milliseconds from 1970/01/01.

Constructors

NameDescription
this Constructs a BsonDate from the given date value.
this Constructs a BsonDate from the given UNIX time.

Properties

NameTypeDescription
value[get, set] longThe raw unix time value.

Methods

NameDescription
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-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.