The OpenD Programming Language

SysTime.this

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

Parameters

dateTime DateTime

The std.datetime.date.DateTime to use to set this SysTime's internal std time. As std.datetime.date.DateTime has no concept of time zone, tz is used as its time zone.

fracSecs Duration

The fractional seconds portion of the time.

tz TimeZone

The std.datetime.timezone.TimeZone to use for this SysTime. If null, std.datetime.timezone.LocalTime will be used. The given std.datetime.date.DateTime is assumed to be in the given time zone.

Throws

std.datetime.date.DateTimeException if fracSecs is negative or if it's greater than or equal to one second.

Meta