Data.Time.Calendar.MonthDay

time-1.8.0.2: A time library

Safe Haskell | Safe
Language | Haskell2010

Data.Time.Calendar.MonthDay

Synopsis

- monthAndDayToDayOfYear :: Bool -> Int -> Int -> Int
- monthAndDayToDayOfYearValid :: Bool -> Int -> Int -> Maybe Int
- dayOfYearToMonthAndDay :: Bool -> Int -> (Int, Int)
- monthLength :: Bool -> Int -> Int

# Documentation

monthAndDayToDayOfYear :: Bool -> Int -> Int -> Int #

Convert month and day in the Gregorian or Julian calendars to day of year. First arg is leap year flag.

monthAndDayToDayOfYearValid :: Bool -> Int -> Int -> Maybe Int #

Convert month and day in the Gregorian or Julian calendars to day of year. First arg is leap year flag.

dayOfYearToMonthAndDay :: Bool -> Int -> (Int, Int) #

Convert day of year in the Gregorian or Julian calendars to month and day. First arg is leap year flag.

monthLength :: Bool -> Int -> Int #

The length of a given month in the Gregorian or Julian calendars. First arg is leap year flag.