# Class NodaConstants

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

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Inherited Members

**Namespace**: NodaTime

**Assembly**: NodaTime.dll

##### Syntax

`public static class NodaConstants`

### Fields

#### DaysPerWeek

Number of days in a standard Gregorian week.
The value of this constant is 7.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int DaysPerWeek = 7`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int HoursPerDay = 24`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int HoursPerWeek = 168`

##### Field Value

Type | Description |
---|---|

int |

#### MicrosecondsPerSecond

A constant for the number of microseconds per second.
The value of this constant is 1,000,000.

**Since**3.1.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long MicrosecondsPerSecond = 1000000`

##### Field Value

Type | Description |
---|---|

long |

#### MillisecondsPerDay

A constant for the number of milliseconds per standard 24-hour day.
The value of this constant is 86,400,000.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MillisecondsPerDay = 86400000`

##### Field Value

Type | Description |
---|---|

int |

#### MillisecondsPerHour

A constant for the number of milliseconds per hour.
The value of this constant is 3,600,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MillisecondsPerHour = 3600000`

##### Field Value

Type | Description |
---|---|

int |

#### MillisecondsPerMinute

A constant for the number of milliseconds per minute.
The value of this constant is 60,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MillisecondsPerMinute = 60000`

##### Field Value

Type | Description |
---|---|

int |

#### MillisecondsPerSecond

A constant for the number of milliseconds per second.
The value of this constant is 1000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MillisecondsPerSecond = 1000`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MillisecondsPerWeek = 604800000`

##### Field Value

Type | Description |
---|---|

int |

#### MinutesPerDay

A constant for the number of minutes per standard 24-hour day.
The value of this constant is 1,440.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MinutesPerDay = 1440`

##### Field Value

Type | Description |
---|---|

int |

#### MinutesPerHour

A constant for the number of minutes per hour.
The value of this constant is 60.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MinutesPerHour = 60`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int MinutesPerWeek = 10080`

##### Field Value

Type | Description |
---|---|

int |

#### 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.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerDay = 86400000000000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerHour

A constant for the number of nanoseconds in an hour. The value of this constant is 3,600,000,000,000.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerHour = 3600000000000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerMicrosecond

A constant for the number of nanoseconds in a microsecond. The value of this constant is 1,000.

**Since**3.1.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerMicrosecond = 1000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerMillisecond

A constant for the number of nanoseconds in a millisecond. The value of this constant is 1,000,000.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerMillisecond = 1000000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerMinute

A constant for the number of nanoseconds in a minute. The value of this constant is 60,000,000,000.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerMinute = 60000000000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerSecond

A constant for the number of nanoseconds in a second. The value of this constant is 1,000,000,000.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerSecond = 1000000000`

##### Field Value

Type | Description |
---|---|

long |

#### NanosecondsPerTick

A constant for the number of nanoseconds in a tick. The value of this constant is 100.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerTick = 100`

##### Field Value

Type | Description |
---|---|

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.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long NanosecondsPerWeek = 604800000000000`

##### Field Value

Type | Description |
---|---|

long |

#### SecondsPerDay

A constant for the number of seconds per standard 24-hour day.
The value of this constant is 86,400.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int SecondsPerDay = 86400`

##### Field Value

Type | Description |
---|---|

int |

#### SecondsPerHour

A constant for the number of seconds per hour.
The value of this constant is 3,600.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int SecondsPerHour = 3600`

##### Field Value

Type | Description |
---|---|

int |

#### SecondsPerMinute

A constant for the number of seconds per minute.
The value of this constant is 60.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int SecondsPerMinute = 60`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const int SecondsPerWeek = 604800`

##### Field Value

Type | Description |
---|---|

int |

#### TicksPerDay

A constant for the number of ticks in a standard 24-hour day.
The value of this constant is 864,000,000,000.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerDay = 864000000000`

##### Field Value

Type | Description |
---|---|

long |

#### TicksPerHour

A constant for the number of ticks in an hour. The value of this constant is 36,000,000,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerHour = 36000000000`

##### Field Value

Type | Description |
---|---|

long |

#### TicksPerMillisecond

A constant for the number of ticks in a millisecond. The value of this constant is 10,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerMillisecond = 10000`

##### Field Value

Type | Description |
---|---|

long |

#### TicksPerMinute

A constant for the number of ticks in a minute. The value of this constant is 600,000,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerMinute = 600000000`

##### Field Value

Type | Description |
---|---|

long |

#### TicksPerSecond

A constant for the number of ticks in a second. The value of this constant is 10,000,000.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerSecond = 10000000`

##### Field Value

Type | Description |
---|---|

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.

**Since**1.4.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public const long TicksPerWeek = 6048000000000`

##### Field Value

Type | Description |
---|---|

long |

### Properties

#### BclEpoch

The instant at the BCL epoch of midnight 1st January 0001 UTC.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static Instant BclEpoch { get; }`

##### Property Value

Type | Description |
---|---|

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.

**Since**2.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static Instant JulianEpoch { get; }`

##### Property Value

Type | Description |
---|---|

Instant |

#### UnixEpoch

The instant at the Unix epoch of midnight 1st January 1970 UTC.

**Since**1.0.x

**Availability**net6.0, netstandard2.0

##### Declaration

`public static Instant UnixEpoch { get; }`

##### Property Value

Type | Description |
---|---|

Instant |