Module

Data.PreciseDate.Component

#Nanosecond

newtype Nanosecond

A nanosecond component for a time value.

Must be used in conjunction with a millisecond component to represent the total amount of time less than 1 second.

The constructor is private as values for the type are restricted to the range 0 to 999999, inclusive. The toEnum function can be used to safely acquire an Nanosecond value from an integer. Correspondingly, a Nanosecond can be lowered to a plain integer with the fromEnum function.

Constructors

Instances

Modules