Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
periodToDayValid :: DayPeriod p => p -> Int -> Maybe Daytime Data.Time.Calendar Validating inverse of periodFromDay.
scaleCalendarDiffDays :: Integer -> CalendarDiffDays -> CalendarDiffDaystime Data.Time.Calendar Scale by a factor. Note that scaleCalendarDiffDays (-1) will not perfectly invert a duration, due to variable month lengths.
toModifiedJulianDay :: Day -> Integertime Data.Time.Calendar No documentation available.
weekAllDays :: DayOfWeek -> Day -> [Day]time Data.Time.Calendar Returns a week containing the given Day where the first day is the DayOfWeek specified. Examples:
>>> weekAllDays Sunday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 20 .. YearMonthDay 2022 2 26]
>>> weekAllDays Monday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 21 .. YearMonthDay 2022 2 27]
>>> weekAllDays Tuesday (YearMonthDay 2022 02 21) [YearMonthDay 2022 2 15 .. YearMonthDay 2022 2 21]
weekFirstDay :: DayOfWeek -> Day -> Daytime Data.Time.Calendar Returns the first day of a week containing the given Day. Examples:
>>> weekFirstDay Sunday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 20
>>> weekFirstDay Monday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 21
>>> weekFirstDay Tuesday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 15
weekLastDay :: DayOfWeek -> Day -> Daytime Data.Time.Calendar Returns the last day of a week containing the given Day. Examples:
>>> weekLastDay Sunday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 26
>>> weekLastDay Monday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 27
>>> weekLastDay Tuesday (YearMonthDay 2022 02 21) YearMonthDay 2022 2 21
-
time Data.Time.Calendar.Easter The next Sunday strictly after a given day.
pattern
JulianYearMonthDay :: Year -> MonthOfYear -> DayOfMonth -> Daytime Data.Time.Calendar.Julian Bidirectional abstract constructor for the proleptic Julian calendar. Invalid values will be clipped to the correct range, month first, then day.
fromJulianYearAndDay :: Year -> DayOfYear -> Daytime Data.Time.Calendar.Julian Convert from proleptic Julian year and day format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
fromJulianYearAndDayValid :: Year -> DayOfYear -> Maybe Daytime Data.Time.Calendar.Julian Convert from proleptic Julian year and day format. Invalid day numbers will return Nothing