Time, clocks and calendars


Change Log


  • new functions secondsToNominalDiffTime & nominalDiffTimeToSeconds
  • expose FormatTime and ParseTime in Data.Time.Format.Internal


  • new conversion functions timeToDaysAndTimeOfDay & daysAndTimeOfDayToTime
  • new DayOfWeek type
  • new CalendarDiffDays and CalendarDiffTime types
  • new ISO8601 module for ISO 8601 formatting & parsing
  • new addLocalTime, diffLocalTime
  • hide members of FormatTime and ParseTime classes
  • formatting & parsing for diff types (NominalDiffTime, DiffTime, CalendarDiffDays, CalendarDiffTime)
  • formatting: %Ez and %EZ for ±HH:MM format
  • parseTimeM: use MonadFail constraint when supported
  • parsing: reject invalid (and empty) time-zones with %z and %Z
  • parsing: reject invalid hour/minute/second specifiers


  • Fix "show minBound" bug
  • haddock: example for parseTimeM


  • Add "Quick start" documentation


  • Fix behaviour of %Q in format


  • Get building on 32 bit machine


  • Added SystemTime
  • Data.Time.Format: allow padding widths in specifiers for formatting (but not parsing)
  • Test: use tasty, general clean-up
  • Test: separate out UNIX-specific tests, so the others can be run on Windows
  • Clean up haddock.


  • Fix bounds issue in .cabal file


  • Data.Time.Clock.TAI: change LeapSecondTable to LeapSecondMap with Maybe type; remove parseTAIUTCDATFile


  • Get building with earlier GHC versions
  • Set lower bound of base correctly



  • FormatTime, ParseTime, Show and Read instances for UniversalTime
  • diffTimeToPicoseconds
  • this change log


  • Use clock_gettime where available
  • Read and Show instances exported in the same module as their types
  • Fixed bug in fromSundayStartWeekValid
  • Parsing functions now reject invalid dates
  • Various documentation fixes


comments powered byDisqus