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 contributors.

Please note that conversion between UTC and Wall time is performed in accordance with the OS facilities. Posix system calculates based on a provided point in time). They should typically have the TZ environment variable set to a valid descriptor.

Members

Static functions

fromDate
Time fromDate(DateTime dt)

Convert Date fields to local time

now
Time now()

Returns the current local time

toDate
DateTime toDate()

Set fields to represent a local version of the current UTC time

toDate
DateTime toDate(Time utc)

Set fields to represent a local version of the provided UTC time

toLocal
Time toLocal(Time utc)
toUtc
Time toUtc(Time wall)
zone
TimeSpan zone()

Returns the timezone relative to GMT. The value is negative when west of GMT

Meta