Clock

Exposes UTC 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.

Interval is another type of time period, used for measuring a much shorter duration; typically used for timeout periods and for high-resolution timers. These intervals are measured in units of 1 second, and support fractional units (0.001 = 1ms).

Members

Static functions

convert
Time convert(timeval tv)

Convert timeval to a Time

convert
timeval convert(Time time)

Convert Time to a timeval

fromDate
Time fromDate(DateTime dt)

Convert Date fields to Time

now
Time now()
setDoy
void setDoy(DateTime dt)
Undocumented in source. Be warned that the author may not have intended to support it.
startTime
Time startTime()
toDate
DateTime toDate()

Set Date fields to represent the current time.

toDate
DateTime toDate(Time time)

Set fields to represent the provided UTC time.

Static variables

DaysToMonthCommon
uint[] DaysToMonthCommon;
Undocumented in source.

Meta