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.
periodAllDays :: DayPeriod p => p -> [Day]time-compat Data.Time.Calendar.Compat A list of all the days in this period.
periodFirstDay :: DayPeriod p => p -> Daytime-compat Data.Time.Calendar.Compat Returns the first Day in a period of days.
periodFromDay :: DayPeriod p => Day -> (p, Int)time-compat Data.Time.Calendar.Compat Get the period this day is in, with the 1-based day number within the period.
periodFromDay (periodFirstDay p) = (p,1)
periodLastDay :: DayPeriod p => p -> Daytime-compat Data.Time.Calendar.Compat Returns the last Day in a period of days.
periodToDay :: DayPeriod p => p -> Int -> Daytime-compat Data.Time.Calendar.Compat Inverse of periodFromDay.
periodToDayValid :: DayPeriod p => p -> Int -> Maybe Daytime-compat Data.Time.Calendar.Compat Validating inverse of periodFromDay.
scaleCalendarDiffDays :: Integer -> CalendarDiffDays -> CalendarDiffDaystime-compat Data.Time.Calendar.Compat Scale by a factor. Note that scaleCalendarDiffDays (-1) will not perfectly invert a duration, due to variable month lengths.
toModifiedJulianDay :: Day -> Integertime-compat Data.Time.Calendar.Compat No documentation available.
weekAllDays :: DayOfWeek -> Day -> [Day]time-compat Data.Time.Calendar.Compat 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-compat Data.Time.Calendar.Compat 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