Constructor BsonDate.this

Overload group

Constructs a BsonDate from the given date value.

The time-zone independent Date and DateTime types are assumed to be in the local time zone and converted to UTC if tz is left to null.

Prototypes

this(
  const(std.datetime.Date) date,
  immutable(std.datetime.TimeZone) tz
) ref;

this(
  const(std.datetime.DateTime) date,
  immutable(std.datetime.TimeZone) tz
) ref;

this(
  const(std.datetime.SysTime) date
) ref;

Overload group

Constructs a BsonDate from the given UNIX time.

unix_time needs to be given in milliseconds from 1970/01/01. This is the native storage format for BsonDate.

Prototype

this(
  long unix_time
) ref;

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.