# Class NodaConstants

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

**Since**1.0.x

**Availability**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**netstandard2.0

##### Declaration

`public const int DaysPerWeek = 7`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int HoursPerDay = 24`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int HoursPerWeek = 168`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int MillisecondsPerDay = 86400000`

##### Field Value

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

Int32 |

#### MillisecondsPerHour

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int MillisecondsPerHour = 3600000`

##### Field Value

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

Int32 |

#### MillisecondsPerMinute

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int MillisecondsPerMinute = 60000`

##### Field Value

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

Int32 |

#### MillisecondsPerSecond

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int MillisecondsPerSecond = 1000`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int MillisecondsPerWeek = 604800000`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int MinutesPerDay = 1440`

##### Field Value

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

Int32 |

#### MinutesPerHour

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int MinutesPerHour = 60`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int MinutesPerWeek = 10080`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerDay = 86400000000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerHour = 3600000000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerMillisecond = 1000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerMinute = 60000000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerSecond = 1000000000L`

##### Field Value

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

Int64 |

#### NanosecondsPerTick

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

**Since**2.0.x

**Availability**netstandard2.0

##### Declaration

`public const long NanosecondsPerTick = 100L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long NanosecondsPerWeek = 604800000000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const int SecondsPerDay = 86400`

##### Field Value

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

Int32 |

#### SecondsPerHour

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int SecondsPerHour = 3600`

##### Field Value

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

Int32 |

#### SecondsPerMinute

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const int SecondsPerMinute = 60`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const int SecondsPerWeek = 604800`

##### Field Value

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

Int32 |

#### 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**netstandard2.0

##### Declaration

`public const long TicksPerDay = 864000000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long TicksPerHour = 36000000000L`

##### Field Value

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

Int64 |

#### TicksPerMillisecond

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

**Since**1.0.x

**Availability**netstandard2.0

##### Declaration

`public const long TicksPerMillisecond = 10000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long TicksPerMinute = 600000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long TicksPerSecond = 10000000L`

##### Field Value

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

Int64 |

#### 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**netstandard2.0

##### Declaration

`public const long TicksPerWeek = 6048000000000L`

##### Field Value

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

Int64 |

### Properties

#### BclEpoch

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

**Since**1.0.x

**Availability**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**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**netstandard2.0

##### Declaration

`public static Instant UnixEpoch { get; }`

##### Property Value

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

Instant |