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.

  1. periodAllDays :: DayPeriod p => p -> [Day]

    time-compat Data.Time.Calendar.Compat

    A list of all the days in this period.

  2. periodFirstDay :: DayPeriod p => p -> Day

    time-compat Data.Time.Calendar.Compat

    Returns the first Day in a period of days.

  3. 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)
    

  4. periodLastDay :: DayPeriod p => p -> Day

    time-compat Data.Time.Calendar.Compat

    Returns the last Day in a period of days.

  5. periodToDay :: DayPeriod p => p -> Int -> Day

    time-compat Data.Time.Calendar.Compat

    Inverse of periodFromDay.

  6. periodToDayValid :: DayPeriod p => p -> Int -> Maybe Day

    time-compat Data.Time.Calendar.Compat

    Validating inverse of periodFromDay.

  7. scaleCalendarDiffDays :: Integer -> CalendarDiffDays -> CalendarDiffDays

    time-compat Data.Time.Calendar.Compat

    Scale by a factor. Note that scaleCalendarDiffDays (-1) will not perfectly invert a duration, due to variable month lengths.

  8. toModifiedJulianDay :: Day -> Integer

    time-compat Data.Time.Calendar.Compat

    No documentation available.

  9. 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]
    

  10. weekFirstDay :: DayOfWeek -> Day -> Day

    time-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
    

Page 12 of many | Previous | Next