Module

Data.PreciseDate.Component

Package
purescript-precise-datetime
Repository
awakesecurity/purescript-precise-datetime

#Nanosecond Source

newtype Nanosecond

An nanosecond component for a time value.

The constructor is private as values for the type are restricted to the range 0 to 999999999, 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