Module
Temporal.ZonedDateTime.Boundary
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
DST-aware boundary / truncation functions for ZonedDateTime.
All functions preserve the timezone and correctly handle DST transitions.
For example, startOfDay may return a non-midnight time in zones where
DST transitions occur at midnight.
#startOfWeek Source
startOfWeek :: ZonedDateTime -> ZonedDateTimeThe start of the Monday of the ISO week containing this ZonedDateTime. DST-aware: may not be midnight.
#endOfWeek Source
endOfWeek :: ZonedDateTime -> ZonedDateTimeThe end of the Sunday of the ISO week containing this ZonedDateTime (last nanosecond of that day).
#startOfMonth Source
startOfMonth :: ZonedDateTime -> ZonedDateTimeThe start of the first day of the month containing this ZonedDateTime.
#endOfMonth Source
endOfMonth :: ZonedDateTime -> ZonedDateTimeThe last nanosecond of the last day of the month containing this ZonedDateTime.
#startOfYear Source
startOfYear :: ZonedDateTime -> ZonedDateTimeThe start of January 1 of the year containing this ZonedDateTime.
#endOfYear Source
endOfYear :: ZonedDateTime -> ZonedDateTimeThe last nanosecond of December 31 of the year containing this ZonedDateTime.
- 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