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. periodToDayValid :: DayPeriod p => p -> Int -> Maybe Day

    time Data.Time.Calendar

    Validating inverse of periodFromDay.

  2. scaleCalendarDiffDays :: Integer -> CalendarDiffDays -> CalendarDiffDays

    time Data.Time.Calendar

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

  3. toModifiedJulianDay :: Day -> Integer

    time Data.Time.Calendar

    No documentation available.

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

  5. weekFirstDay :: DayOfWeek -> Day -> Day

    time 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
    

  6. weekLastDay :: DayOfWeek -> Day -> Day

    time 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
    

  7. sundayAfter :: Day -> Day

    time Data.Time.Calendar.Easter

    The next Sunday strictly after a given day.

  8. pattern JulianYearMonthDay :: Year -> MonthOfYear -> DayOfMonth -> Day

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

  9. fromJulianYearAndDay :: Year -> DayOfYear -> Day

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

  10. fromJulianYearAndDayValid :: Year -> DayOfYear -> Maybe Day

    time Data.Time.Calendar.Julian

    Convert from proleptic Julian year and day format. Invalid day numbers will return Nothing

Page 7 of many | Previous | Next