vibe.d beta banner
get vibe.d
0.7.30

BsonDate.this - multiple declarations

  • Function BsonDate.this
  • Function BsonDate.this

Function BsonDate.this

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

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

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

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

Function BsonDate.this

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

ref this(
  long unix_time
);
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.