Module
Data.PreciseDate.Component
- Package
- purescript-precise-datetime
- Repository
- awakesecurity/purescript-precise-datetime
#Nanosecond Source
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.