SysTime.this

Note: Whereas the other constructors take in the given date/time, assume that it's in the given time zone, and convert it to hnsecs in UTC since midnight, January 1st, 1 A.D. UTC - i.e. std time - this constructor takes a std time, which is specifically already in UTC, so no conversion takes place. Of course, the various getter properties and functions will use the given time zone's conversion function to convert the results to that time zone, but no conversion of the arguments to this constructor takes place.

  1. this(DateTime dateTime, TimeZone tz)
  2. this(DateTime dateTime, Duration fracSecs, TimeZone tz)
  3. this(Date date, TimeZone tz)
  4. this(long stdTime, TimeZone tz)
    struct SysTime
    return scope @safe pure nothrow
    this
    (
    long stdTime
    ,
    return scope immutable TimeZone tz = null
    )

Parameters

stdTime long

The number of hnsecs since midnight, January 1st, 1 A.D. UTC.

tz TimeZone

The std.datetime.timezone.TimeZone to use for this SysTime. If null, std.datetime.timezone.LocalTime will be used.

Meta