[This is preliminary documentation and is subject to change.]
Useful constants, mostly along the lines of "number of milliseconds in an hour".
| C# | Visual Basic | Visual C++ |
public static class NodaConstants
Public NotInheritable Class NodaConstants
public ref class NodaConstants abstract sealed
| All Members | Fields | ||||
| Icon | Member | Description |
|---|---|---|
| BclEpoch |
The instant at the BCL epoch of midnight 1st January 0001 UTC.
| |
| DaysPerStandardWeek |
Number of days in a standard Gregorian week.
The value of this constant is 7.
| |
| HoursPerStandardDay |
A constant for the number of hours in a standard day. Note that the number of hours
in a day can vary due to daylight saving effects.
The value of this constant is 24.
| |
| HoursPerStandardWeek |
A constant for the number of hours in a standard week of seven 24-hour days.
The value of this constant is 168.
| |
| MillisecondsPerHour |
A constant for the number of milliseconds per hour.
The value of this constant is 3,600,000.
| |
| MillisecondsPerMinute |
A constant for the number of milliseconds per minute.
The value of this constant is 60,000.
| |
| MillisecondsPerSecond |
A constant for the number of milliseconds per second.
The value of this constant is 1000.
| |
| MillisecondsPerStandardDay |
A constant for the number of milliseconds per standard 24-hour day.
The value of this constant is 86,400,000.
| |
| MillisecondsPerStandardWeek |
A constant for the number of milliseconds per standard week of seven 24-hour days.
The value of this constant is 604,800,000.
| |
| MinutesPerHour |
A constant for the number of minutes per hour.
The value of this constant is 60.
| |
| MinutesPerStandardDay |
A constant for the number of minutes per standard 24-hour day.
The value of this constant is 1,440.
| |
| MinutesPerStandardWeek |
A constant for the number of minutes per standard week of seven 24-hour days.
The value of this constant is 10,080.
| |
| SecondsPerHour |
A constant for the number of seconds per hour.
The value of this constant is 3,600.
| |
| SecondsPerMinute |
A constant for the number of seconds per minute.
The value of this constant is 60.
| |
| SecondsPerStandardDay |
A constant for the number of seconds per standard 24-hour day.
The value of this constant is 86,400.
| |
| SecondsPerWeek |
A constant for the number of seconds per standard week of seven 24-hour days.
The value of this constant is 604,800.
| |
| TicksPerHour |
A constant for the number of ticks in an hour. The value of this constant is 36,000,000,000.
| |
| TicksPerMillisecond |
A constant for the number of ticks in a millisecond. The value of this constant is 10,000.
| |
| TicksPerMinute |
A constant for the number of ticks in a minute. The value of this constant is 600,000,000.
| |
| TicksPerSecond |
A constant for the number of ticks in a second. The value of this constant is 10,000,000.
| |
| TicksPerStandardDay |
A constant for the number of ticks in a standard 24-hour day.
The value of this constant is 864,000,000,000.
| |
| TicksPerStandardWeek |
A constant for the number of ticks in a standard week of seven 24-hour days.
The value of this constant is 6,048,000,000,000.
| |
| UnixEpoch |
The instant at the Unix epoch of midnight 1st January 1970 UTC.
|
| Object | |
| NodaConstants | |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)