Enum ETimeUnit
The time units supported by the conversion functions.
Note: This will be deprecated once Galaxon.Quantities is complete.
Namespace: Galaxon.Core.Time
Assembly: Galaxon.Core.dll
Syntax
public enum ETimeUnit : int
Fields
| Value | Name | Description |
|---|---|---|
| 0 | Nanosecond | Nanosecond (ns). 1 ns = 10-9 s = 0.01 ticks |
| 1 | Tick | The core time unit used by .NET. 1 tick = 100 ns = 0.1 µs = 10-7 s |
| 2 | Microsecond | Microsecond (µs). 1 µs = 10-6 s = 1000 ns = 10 ticks |
| 3 | Millisecond | Millisecond (ms). 1 ms = 10-3 s = 1000 µs |
| 4 | Second | Second (s). 1 second = 10,000,000 ticks |
| 5 | Minute | Minute (min). 1 min = 60 s |
| 6 | Hour | Hour (h). 1 h = 60 min = 3600 sec |
| 7 | Day | Day (d). 1 d = 24 h = 86,400 min. Depending on context, this may refers to an ephemeris day (exactly 86,400 SI seconds), or a solar day, which is slightly longer. |
| 8 | Week | Week (w). 1 w = 7 d = 168 h |
| 9 | Month | Month (mon). Ranges in length from 28-31 days. The average Gregorian calendar month length is 30.436875 d = 4.348125 w = 31,556,952 s |
| 10 | Year | Year (y). This refers to a Gregorian calendar year, which is 365 or 366 days. The average is 365.2425 days. 1 y = 12 mon |
| 11 | Decade | Decade (dec). 1 dec = 10 y |
| 12 | Century | Century (c). 1 c = 10 dec = 100 y |
| 13 | Millennium | Millennium (ky). 1 ky = 10 c = 100 dec = 1000 y |