Module
Temporal.Diff
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
Convenience diff functions that return a single number.
These are thin wrappers over the until functions, configured to return
a single-unit duration in the requested unit. The sign of the result
indicates direction (negative if the first argument is after the second).
#diffMonths Source
diffMonths :: PlainDate -> PlainDate -> IntMonths between two dates. Positive when b is after a.
#diffHours Source
diffHours :: PlainDateTime -> PlainDateTime -> NumberHours between two datetimes. Positive when b is after a.
#diffMinutes Source
diffMinutes :: PlainDateTime -> PlainDateTime -> NumberMinutes between two datetimes. Positive when b is after a.
#diffSeconds Source
diffSeconds :: PlainDateTime -> PlainDateTime -> NumberSeconds between two datetimes. Positive when b is after a.
- Modules
- Temporal.
Diff - Temporal.
Display - Temporal.
Duration - Temporal.
Duration. Extra - Temporal.
Format. Html - Temporal.
Instant - Temporal.
Instant. Extra - Temporal.
Internal. Options - Temporal.
Internal. Types - Temporal.
Internal. Unsafe - Temporal.
Interval - Temporal.
Interval. Duration - Temporal.
Interval. Set - Temporal.
Now - Temporal.
PlainDate - Temporal.
PlainDate. Boundary - Temporal.
PlainDate. Extra - Temporal.
PlainDate. Weekday - Temporal.
PlainDateTime - Temporal.
PlainDateTime. Extra - Temporal.
PlainMonthDay - Temporal.
PlainTime - Temporal.
PlainTime. Extra - Temporal.
PlainYearMonth - Temporal.
PlainYearMonth. Extra - Temporal.
Predicate - Temporal.
TimeDuration - Temporal.
ZonedDateTime - Temporal.
ZonedDateTime. Boundary - Temporal.
ZonedDateTime. Extra