vibe.d beta banner
get vibe.d
0.8.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

Constructors

NameDescription
thisConstructs a BsonDate from the given date value.
thisConstructs a BsonDate from the given UNIX time.

Properties

Properties

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

Methods

Methods

NameDescription
fromStdTimeConstructs a BsonDate from the given date/time in standard time as defined in std.datetime.
fromStringConstructs a BsonDate from the given date/time string in ISO extended format.
opCmpAllows relational and equality comparisons.
opEqualsAllows relational and equality comparisons.
toStringReturns 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.