time-compat-1.9.5: Compatibility package for time
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Time.Calendar.Julian.Compat

Synopsis

Documentation

type Year = Integer Source #

Year of Common Era.

type MonthOfYear = Int Source #

Month of year, in range 1 (January) to 12 (December).

type DayOfMonth = Int Source #

Day of month, in range 1 to 31.

type DayOfYear = Int Source #

Day of year, in range 1 (January 1st) to 366. December 31st is 365 in a common year, 366 in a leap year.

toJulianYearAndDay :: Day -> (Integer, Int) #

fromJulianYearAndDay :: Integer -> Int -> Day #

fromJulianYearAndDayValid :: Integer -> Int -> Maybe Day #

isJulianLeapYear :: Integer -> Bool #

toJulian :: Day -> (Integer, Int, Int) #

fromJulian :: Integer -> Int -> Int -> Day #

pattern JulianYearMonthDay :: Year -> MonthOfYear -> DayOfMonth -> Day Source #

Bidirectional abstract constructor for the proleptic Julian calendar. Invalid values will be clipped to the correct range, month first, then day.

fromJulianValid :: Integer -> Int -> Int -> Maybe Day #

showJulian :: Day -> String #

julianMonthLength :: Integer -> Int -> Int #

addJulianMonthsClip :: Integer -> Day -> Day #

addJulianMonthsRollOver :: Integer -> Day -> Day #

addJulianYearsClip :: Integer -> Day -> Day #

addJulianYearsRollOver :: Integer -> Day -> Day #