utc-0.1.0.0: A pragmatic time and date library.

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.UTC.Internal

Synopsis

Documentation

yearMonthDayToDays :: (Integer, Integer, Integer) -> Integer Source

Convert Year-Month-Day to since 0000-01-01 in the Gregorian Calendar

  • year 0 is a leap year
  • year 400 is a leap year
  • year 100,200,300 is not a leap year
  • year / 4 is a leap year
  • year (-4) (5 BC) is a leap year