vibe.d beta banner
get vibe.d
0.10.0

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

BsonDate.this - multiple declarations

Function BsonDate.this

Constructs a BsonDate from the given date value.

ref this (
  in const(std.datetime.date.Date) date,
  immutable(std.datetime.timezone.TimeZone) tz = null
) @safe;

ref this (
  in const(std.datetime.date.DateTime) date,
  immutable(std.datetime.timezone.TimeZone) tz = null
) @safe;

ref this (
  in const(std.datetime.systime.SysTime) date
) @safe;

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.

Function BsonDate.this

Constructs a BsonDate from the given UNIX time.

ref this (
  long unix_time
) @safe;

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

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.