Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class NodaTime.​NodaConstants

Assembly: NodaTime

Inheritance: object → NodaConstants

Useful constants, mostly along the lines of "number of milliseconds in an hour".

Fields and Constants

public const long
NanosecondsPerTick
A constant for the number of nanoseconds in a tick. The value of this constant is 100.
public const long
NanosecondsPerMicrosecond
A constant for the number of nanoseconds in a microsecond. The value of this constant is 1,000.
public const long
NanosecondsPerMillisecond
A constant for the number of nanoseconds in a millisecond. The value of this constant is 1,000,000.
public const long
NanosecondsPerSecond
A constant for the number of nanoseconds in a second. The value of this constant is 1,000,000,000.
public const long
NanosecondsPerMinute
A constant for the number of nanoseconds in a minute. The value of this constant is 60,000,000,000.
public const long
NanosecondsPerHour
A constant for the number of nanoseconds in an hour. The value of this constant is 3,600,000,000,000.
public const long
NanosecondsPerDay
A constant for the number of nanoseconds in a standard 24-hour day. The value of this constant is 86,400,000,000,000.
public const long
NanosecondsPerWeek
A constant for the number of nanoseconds in a standard week of seven 24-hour days. The value of this constant is 604,800,000,000,000.
public const long
TicksPerMillisecond
A constant for the number of ticks in a millisecond. The value of this constant is 10,000.
public const long
TicksPerSecond
A constant for the number of ticks in a second. The value of this constant is 10,000,000.
public const long
TicksPerMinute
A constant for the number of ticks in a minute. The value of this constant is 600,000,000.
public const long
TicksPerHour
A constant for the number of ticks in an hour. The value of this constant is 36,000,000,000.
public const long
TicksPerDay
A constant for the number of ticks in a standard 24-hour day. The value of this constant is 864,000,000,000.
public const long
TicksPerWeek
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.
public const long
MicrosecondsPerSecond
A constant for the number of microseconds per second. The value of this constant is 1,000,000.
public const int
MillisecondsPerSecond
A constant for the number of milliseconds per second. The value of this constant is 1000.
public const int
MillisecondsPerMinute
A constant for the number of milliseconds per minute. The value of this constant is 60,000.
public const int
MillisecondsPerHour
A constant for the number of milliseconds per hour. The value of this constant is 3,600,000.
public const int
MillisecondsPerDay
A constant for the number of milliseconds per standard 24-hour day. The value of this constant is 86,400,000.
public const int
MillisecondsPerWeek
A constant for the number of milliseconds per standard week of seven 24-hour days. The value of this constant is 604,800,000.
public const int
SecondsPerMinute
A constant for the number of seconds per minute. The value of this constant is 60.
public const int
SecondsPerHour
A constant for the number of seconds per hour. The value of this constant is 3,600.
public const int
SecondsPerDay
A constant for the number of seconds per standard 24-hour day. The value of this constant is 86,400.
public const int
SecondsPerWeek
A constant for the number of seconds per standard week of seven 24-hour days. The value of this constant is 604,800.
public const int
MinutesPerHour
A constant for the number of minutes per hour. The value of this constant is 60.
public const int
MinutesPerDay
A constant for the number of minutes per standard 24-hour day. The value of this constant is 1,440.
public const int
MinutesPerWeek
A constant for the number of minutes per standard week of seven 24-hour days. The value of this constant is 10,080.
public const int
HoursPerDay
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.
public const int
HoursPerWeek
A constant for the number of hours in a standard week of seven 24-hour days. The value of this constant is 168.
public const int
DaysPerWeek
Number of days in a standard Gregorian week. The value of this constant is 7.

Properties

public static Instant
UnixEpoch
The instant at the Unix epoch of midnight 1st January 1970 UTC.
public static Instant
BclEpoch
The instant at the BCL epoch of midnight 1st January 0001 UTC.
public static Instant
JulianEpoch
The instant at the Julian epoch of noon (UTC) January 1st 4713 BCE in the proleptic Julian calendar, or November 24th 4714 BCE in the proleptic Gregorian calendar.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object