View source code
Display the source code in std/datetime/systime.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
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.

std.datetime.systime.SysTime.timezone - multiple declarations

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.

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

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.

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

Parameters

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

Authors

Jonathan M Davis

License

Boost License 1.0.