tango.time.WallClock

License:

BSD style: see license.txt

Version:

Apr 2007: split away from utc

Author:

Kris
struct WallClock
Exposes wall-time relative to Jan 1st, 1 AD. These values are based upon a clock-tick of 100ns, giving them a span of greater than 10,000 years. These Units of time are the foundation of most time and date functionality in Tango.
Please note that conversion between UTC and Wall time is performed in accordance with the OS facilities. In particular, Win32 systems behave differently to Posix when calculating daylight-savings time (Win32 calculates with respect to the time of the call, whereas a Posix system calculates based on a provided point in time). Posix systems should typically have the TZ environment variable set to a valid descriptor.
Time now() [@property, static]
Return the current local time
TimeSpan zone() [@property, static]
Return the timezone relative to GMT. The value is negative when west of GMT
DateTime toDate() [static]
Set fields to represent a local version of the current UTC time. All values must fall within the domain supported by the OS
DateTime toDate(const(Time) utc) [static]
Set fields to represent a local version of the provided UTC time. All values must fall within the domain supported by the OS
Time fromDate(ref const(DateTime) dt) [static]
Convert Date fields to local time
Time toLocal(const(Time) utc) [static]
Time toUtc(const(Time) wall) [static]