TimeConstants Class
Provides constants for typical "magic numbers" used when working with times or time intervals.
public static class TimeConstantsConstants
| Name | Description |
|---|---|
| DaysPerWeek | Gets the number of days in a week. |
| HoursPerDay | Gets the number of hours in a day. |
| HoursPerWeek | Gets the number of hours in a week. |
| MillisecondsPerDay | Gets the number of milliseconds in a day. |
| MillisecondsPerHour | Gets the number of milliseconds in an hour. |
| MillisecondsPerMinute | Gets the number of milliseconds in a minute. |
| MillisecondsPerSecond | Gets the number of milliseconds in a second. |
| MillisecondsPerWeek | Gets the number of milliseconds in a week. |
| MinutesPerDay | Gets the number of minutes in a day. |
| MinutesPerHour | Gets the number of minutes in an hour. |
| MinutesPerWeek | Gets the number of minutes in a week. |
| SecondsPerDay | Gets the number of seconds in a day. |
| SecondsPerHour | Gets the number of seconds in an hour. |
| SecondsPerMinute | Gets the number of seconds in a minute. |
| SecondsPerWeek | Gets the number of seconds in a week. |
| TicksPerDay | Gets the number of ticks in a day. |
| TicksPerHour | Gets the number of ticks in an hour. |
| TicksPerMillisecond | Gets the number of ticks in a millisecond. |
| TicksPerMinute | Gets the number of ticks in a minute. |
| TicksPerSecond | Gets the number of ticks in a second. |
| TicksPerWeek | Gets the number of ticks in a week. |
DaysPerWeek
Gets the number of days in a week.
public const int DaysPerWeek = 7HoursPerDay
Gets the number of hours in a day.
public const int HoursPerDay = 24HoursPerWeek
Gets the number of hours in a week.
public const int HoursPerWeek = 168MillisecondsPerDay
Gets the number of milliseconds in a day.
public const int MillisecondsPerDay = 86400000MillisecondsPerHour
Gets the number of milliseconds in an hour.
public const int MillisecondsPerHour = 3600000MillisecondsPerMinute
Gets the number of milliseconds in a minute.
public const int MillisecondsPerMinute = 60000MillisecondsPerSecond
Gets the number of milliseconds in a second.
public const int MillisecondsPerSecond = 1000MillisecondsPerWeek
Gets the number of milliseconds in a week.
public const int MillisecondsPerWeek = 604800000MinutesPerDay
Gets the number of minutes in a day.
public const int MinutesPerDay = 1440MinutesPerHour
Gets the number of minutes in an hour.
public const int MinutesPerHour = 60MinutesPerWeek
Gets the number of minutes in a week.
public const int MinutesPerWeek = 10080SecondsPerDay
Gets the number of seconds in a day.
public const int SecondsPerDay = 86400SecondsPerHour
Gets the number of seconds in an hour.
public const int SecondsPerHour = 3600SecondsPerMinute
Gets the number of seconds in a minute.
public const int SecondsPerMinute = 60SecondsPerWeek
Gets the number of seconds in a week.
public const int SecondsPerWeek = 604800TicksPerDay
Gets the number of ticks in a day.
public const long TicksPerDay = 864000000000LTicksPerHour
Gets the number of ticks in an hour.
public const long TicksPerHour = 36000000000LTicksPerMillisecond
Gets the number of ticks in a millisecond.
public const long TicksPerMillisecond = 10000LTicksPerMinute
Gets the number of ticks in a minute.
public const long TicksPerMinute = 600000000LTicksPerSecond
Gets the number of ticks in a second.
public const long TicksPerSecond = 10000000LTicksPerWeek
Gets the number of ticks in a week.
public const long TicksPerWeek = 6048000000000L