Module
Temporal.Predicate
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
Readable boolean predicates for Temporal types.
These are thin wrappers over Eq/Ord and component getters. They
communicate intent better than raw comparison operators.
#isBetweenDates Source
isBetweenDates :: PlainDate -> PlainDate -> PlainDate -> BooleanWhether a date falls between two bounds (inclusive on both ends).
isBetweenDates (plainDate 2024 3 15) (plainDate 2024 3 1) (plainDate 2024 3 31)
#sameDayDateTime Source
sameDayDateTime :: PlainDateTime -> PlainDateTime -> BooleanWhether two datetimes fall on the same calendar day.
#isBetweenDateTimes Source
isBetweenDateTimes :: PlainDateTime -> PlainDateTime -> PlainDateTime -> BooleanWhether a datetime falls between two bounds (inclusive on both ends).
- 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