Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides just the compatibility wrappers for the things
that thyme
does differently from time
. No RealFrac
instances for
DiffTime
nor NominalDiffTime
, nor other riffraff.
- module Data.Thyme
- class Thyme a b | b -> a where
- toThyme :: Thyme a b => a -> b
- fromThyme :: Thyme a b => b -> a
- addDays :: Days -> Day -> Day
- diffDays :: Day -> Day -> Days
- toGregorian :: Day -> (Year, Month, DayOfMonth)
- fromGregorian :: Year -> Month -> DayOfMonth -> Day
- fromGregorianValid :: Year -> Month -> DayOfMonth -> Maybe Day
- addGregorianMonthsClip :: Months -> Day -> Day
- addGregorianMonthsRollover :: Months -> Day -> Day
- addGregorianYearsClip :: Years -> Day -> Day
- addGregorianYearsRollover :: Years -> Day -> Day
- dayOfYearToMonthAndDay :: Bool -> DayOfYear -> (Month, DayOfMonth)
- monthAndDayToDayOfYear :: Bool -> Month -> DayOfMonth -> DayOfYear
- monthAndDayToDayOfYearValid :: Bool -> Month -> DayOfMonth -> Maybe DayOfYear
- toOrdinalDate :: Day -> (Year, DayOfYear)
- fromOrdinalDate :: Year -> DayOfYear -> Day
- fromOrdinalDateValid :: Year -> DayOfYear -> Maybe Day
- sundayStartWeek :: Day -> (Year, WeekOfYear, DayOfWeek)
- fromSundayStartWeek :: Year -> WeekOfYear -> DayOfWeek -> Day
- fromSundayStartWeekValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day
- mondayStartWeek :: Day -> (Year, WeekOfYear, DayOfWeek)
- fromMondayStartWeek :: Year -> WeekOfYear -> DayOfWeek -> Day
- fromMondayStartWeekValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day
- toWeekDate :: Day -> (Year, WeekOfYear, DayOfWeek)
- fromWeekDate :: Year -> WeekOfYear -> DayOfWeek -> Day
- fromWeekDateValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day
- getModJulianDate :: UniversalTime -> Rational
- mkModJulianDate :: Rational -> UniversalTime
- secondsToDiffTime :: Int64 -> DiffTime
- picosecondsToDiffTime :: Int64 -> DiffTime
- mkUTCTime :: Day -> DiffTime -> UTCTime
- unUTCTime :: UTCTime -> UTCView
- addUTCTime :: NominalDiffTime -> UTCTime -> UTCTime
- diffUTCTime :: UTCTime -> UTCTime -> NominalDiffTime
- toMicroseconds :: TimeDiff t => t -> Int64
- fromMicroseconds :: TimeDiff t => Int64 -> t
- posixSecondsToUTCTime :: POSIXTime -> UTCTime
- utcTimeToPOSIXSeconds :: UTCTime -> POSIXTime
- addAbsoluteTime :: DiffTime -> AbsoluteTime -> AbsoluteTime
- diffAbsoluteTime :: AbsoluteTime -> AbsoluteTime -> DiffTime
- utcToTAITime :: LeapSecondTable -> UTCTime -> AbsoluteTime
- taiToUTCTime :: LeapSecondTable -> AbsoluteTime -> UTCTime
- utcToLocalTimeOfDay :: TimeZone -> TimeOfDay -> (Days, TimeOfDay)
- localToUTCTimeOfDay :: TimeZone -> TimeOfDay -> (Days, TimeOfDay)
- timeToTimeOfDay :: DiffTime -> TimeOfDay
- timeOfDayToTime :: TimeOfDay -> DiffTime
- dayFractionToTimeOfDay :: Rational -> TimeOfDay
- timeOfDayToDayFraction :: TimeOfDay -> Rational
- utcToLocalTime :: TimeZone -> UTCTime -> LocalTime
- localTimeToUTC :: TimeZone -> LocalTime -> UTCTime
- ut1ToLocalTime :: Rational -> UniversalTime -> LocalTime
- localTimeToUT1 :: Rational -> LocalTime -> UniversalTime
- utcToZonedTime :: TimeZone -> UTCTime -> ZonedTime
- zonedTimeToUTC :: ZonedTime -> UTCTime
Documentation
module Data.Thyme
Type conversion
Data.Time.Calendar
toGregorian :: Day -> (Year, Month, DayOfMonth) Source
fromGregorian :: Year -> Month -> DayOfMonth -> Day Source
fromGregorianValid :: Year -> Month -> DayOfMonth -> Maybe Day Source
addGregorianMonthsClip :: Months -> Day -> Day Source
addGregorianMonthsRollover :: Months -> Day -> Day Source
addGregorianYearsClip :: Years -> Day -> Day Source
addGregorianYearsRollover :: Years -> Day -> Day Source
Data.Time.Calendar.MonthDay
dayOfYearToMonthAndDay :: Bool -> DayOfYear -> (Month, DayOfMonth) Source
monthAndDayToDayOfYear :: Bool -> Month -> DayOfMonth -> DayOfYear Source
monthAndDayToDayOfYearValid :: Bool -> Month -> DayOfMonth -> Maybe DayOfYear Source
Data.Time.Calendar.OrdinalDate
toOrdinalDate :: Day -> (Year, DayOfYear) Source
fromOrdinalDate :: Year -> DayOfYear -> Day Source
sundayStartWeek :: Day -> (Year, WeekOfYear, DayOfWeek) Source
fromSundayStartWeek :: Year -> WeekOfYear -> DayOfWeek -> Day Source
fromSundayStartWeekValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day Source
mondayStartWeek :: Day -> (Year, WeekOfYear, DayOfWeek) Source
fromMondayStartWeek :: Year -> WeekOfYear -> DayOfWeek -> Day Source
fromMondayStartWeekValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day Source
Data.Time.Calendar.WeekDate
toWeekDate :: Day -> (Year, WeekOfYear, DayOfWeek) Source
fromWeekDate :: Year -> WeekOfYear -> DayOfWeek -> Day Source
fromWeekDateValid :: Year -> WeekOfYear -> DayOfWeek -> Maybe Day Source
Data.Time.Clock
mkModJulianDate :: Rational -> UniversalTime Source
Replacement for ModJulianDate
.
secondsToDiffTime :: Int64 -> DiffTime Source
addUTCTime :: NominalDiffTime -> UTCTime -> UTCTime Source
diffUTCTime :: UTCTime -> UTCTime -> NominalDiffTime Source
toMicroseconds :: TimeDiff t => t -> Int64 Source
fromMicroseconds :: TimeDiff t => Int64 -> t Source
Data.Time.Clock.POSIX
Data.Time.Clock.TAI
utcToTAITime :: LeapSecondTable -> UTCTime -> AbsoluteTime Source
taiToUTCTime :: LeapSecondTable -> AbsoluteTime -> UTCTime Source
Data.Time.LocalTime
utcToLocalTime :: TimeZone -> UTCTime -> LocalTime Source
localTimeToUTC :: TimeZone -> LocalTime -> UTCTime Source
ut1ToLocalTime :: Rational -> UniversalTime -> LocalTime Source
localTimeToUT1 :: Rational -> LocalTime -> UniversalTime Source
utcToZonedTime :: TimeZone -> UTCTime -> ZonedTime Source
zonedTimeToUTC :: ZonedTime -> UTCTime Source