BSD style: see
license.txt
Apr 2007: split away from utc
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() [static] ¶#
-
Return the current local time
- TimeSpan zone() [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(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 DateTime date) [static] ¶#
-
Convert Date fields to local time
- TimeSpan localBias() [private, static] ¶#
-
Retrieve the local bias, including DST adjustment.
Note that Win32 calculates DST at the time of call
rather than based upon a point in time represented
by an argument.
- Time toLocal(Time utc) [static] ¶#
-
- Time toUtc(Time wall) [static] ¶#
-