Module
Temporal.PlainDate.Boundary
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
Boundary / truncation functions for PlainDate.
All functions are pure PureScript — no FFI required.
#startOfWeek Source
startOfWeek :: PlainDate -> PlainDateThe Monday of the ISO week containing this date.
startOfWeek (plainDate 2024 3 20) -- Wednesday -> Monday 2024-03-18
#startOfMonth Source
startOfMonth :: PlainDate -> PlainDateThe first day of the month containing this date.
#endOfMonth Source
endOfMonth :: PlainDate -> PlainDateThe last day of the month containing this date.
#startOfYear Source
startOfYear :: PlainDate -> PlainDateJanuary 1 of the year containing this date.
#startOfDay Source
startOfDay :: PlainDate -> PlainDateTimeThe given date at midnight (00:00:00.000000000).
#endOfDay Source
endOfDay :: PlainDate -> PlainDateTimeThe given date at the last representable nanosecond (23:59:59.999999999).
- 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