Data.DateTime
- Package
- datetime
- Repository
- purerl/purescript-datetime
Re-exports from Data.Date
#canonicalDate Source
canonicalDate :: Year -> Month -> Day -> Date
Constructs a date from year, month, and day components. The resulting date components may not be identical to the input values, as the date will be canonicalised according to the Gregorian calendar. For example, date values for the invalid date 2016-02-31 will be corrected to 2016-03-02.
Re-exports from Data.Time
#Second Source
newtype Second
An second component for a time value.
The constructor is private as values for the type are restricted to the
range 0 to 59, inclusive. The toEnum
function can be used to safely
acquire an Second
value from an integer. Correspondingly, a Second
can
be lowered to a plain integer with the fromEnum
function.
Instances
#Minute Source
newtype Minute
An minute component for a time value.
The constructor is private as values for the type are restricted to the
range 0 to 59, inclusive. The toEnum
function can be used to safely
acquire an Minute
value from an integer. Correspondingly, a Minute
can
be lowered to a plain integer with the fromEnum
function.
Instances
#Millisecond Source
newtype Millisecond
An millisecond component for a time value.
The constructor is private as values for the type are restricted to the
range 0 to 999, inclusive. The toEnum
function can be used to safely
acquire an Millisecond
value from an integer. Correspondingly, a
Millisecond
can be lowered to a plain integer with the fromEnum
function.
Instances
#Hour Source
newtype Hour
An hour component for a time value.
The constructor is private as values for the type are restricted to the
range 0 to 23, inclusive. The toEnum
function can be used to safely
acquire an Hour
value from an integer. Correspondingly, an Hour
can be
lowered to a plain integer with the fromEnum
function.
Instances
#setMillisecond Source
setMillisecond :: Millisecond -> Time -> Time
Alters the millisecond component of a time value.
#millisecond Source
millisecond :: Time -> Millisecond
The millisecond component of a time value.
- Modules
- Data.
Date - Data.
Date. Component - Data.
Date. Component. Gen - Data.
Date. Gen - Data.
DateTime - Data.
DateTime. Gen - Data.
DateTime. Instant - Data.
Interval - Data.
Interval. Duration - Data.
Interval. Duration. Iso - Data.
Time - Data.
Time. Component - Data.
Time. Component. Gen - Data.
Time. Duration - Data.
Time. Duration. Gen - Data.
Time. Gen