View source code Display the source code in std/datetime.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.datetime.sys_time.timezone - multiple declarations

Function SysTime.timezone

The current time zone of this SysTime. It's internal time is always kept in UTC, so there are no conversion issues between time zones due to DST. Functions which return all or part of the time - such as hours - adjust the time to this SysTime's time zone before returning.

Prototype

void timezone(
  immutable(TimeZone) timezone
) pure nothrow @property @safe;

Parameters

NameDescription
timezone The .TimeZone, TimeZone to set this SysTime's time zone to.

Function SysTime.timezone

The current time zone of this SysTime. Its internal time is always kept in UTC, so there are no conversion issues between time zones due to DST. Functions which return all or part of the time - such as hours - adjust the time to this SysTime's time zone before returning.

Prototype

immutable(TimeZone) timezone() pure nothrow @property @safe const;

Authors

Jonathan M Davis and Kato Shoichi

License

Boost License 1.0.

Comments