Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

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

    time-compat Data.Time.Calendar.Compat

    Returns the last Day in a period of days.

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

    time-compat Data.Time.Calendar.Compat

    Inverse of periodFromDay.

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

    time-compat Data.Time.Calendar.Compat

    Validating inverse of periodFromDay.

  5. 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.

  6. toModifiedJulianDay :: Day -> Integer

    time-compat Data.Time.Calendar.Compat

    No documentation available.

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

  8. 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
    

  9. weekLastDay :: DayOfWeek -> Day -> Day

    time-compat Data.Time.Calendar.Compat

    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
    

  10. sundayAfter :: Day -> Day

    time-compat Data.Time.Calendar.Easter.Compat

    The next Sunday strictly after a given day.

Page 5 of many | Previous | Next