vibe.d beta banner
get vibe.d
0.9.0

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 (date, tz) Constructs a BsonDate from the given date value.
this (unix_time) Constructs a BsonDate from the given UNIX time.

Properties

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

Methods

NameDescription
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)
Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

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