convertible-1.1.1.0: Typeclasses and instances for converting between types

Copyright | Copyright (C) 2009-2011 John Goerzen
License | BSD3
Maintainer | John Goerzen <jgoerzen@complete.org>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Data.Convertible.Instances.Time

Contents

- Orphan instances

Description

Instances to convert between various time structures, both old- and new-style.

At present, this module does not do full input validation. That is, it is possible to get an exception rather than a Left result from these functions if your input is invalid, particularly when converting from the old-style System.Time structures.

Copyright (C) 2009-2011 John Goerzen jgoerzen@complete.org

All rights reserved.

For license and copyright information, see the file LICENSE

# Orphan instances

Convertible Double CTime # |
Instance details Methods safeConvert :: Double -> ConvertResult CTime #
Convertible Double TimeDiff # |
Instance details Methods safeConvert :: Double -> ConvertResult TimeDiff #
Convertible Double UTCTime # |
Instance details Methods safeConvert :: Double -> ConvertResult UTCTime #
Convertible Double POSIXTime # |
Instance details Methods safeConvert :: Double -> ConvertResult POSIXTime #
Convertible Int CTime # |
Instance details Methods safeConvert :: Int -> ConvertResult CTime #
Convertible Int UTCTime # |
Instance details Methods safeConvert :: Int -> ConvertResult UTCTime #
Convertible Int POSIXTime # |
Instance details Methods safeConvert :: Int -> ConvertResult POSIXTime #
Convertible Integer CTime # |
Instance details Methods safeConvert :: Integer -> ConvertResult CTime #
Convertible Integer ClockTime # |
Instance details Methods safeConvert :: Integer -> ConvertResult ClockTime #
Convertible Integer TimeDiff # |
Instance details Methods safeConvert :: Integer -> ConvertResult TimeDiff #
Convertible Integer UTCTime # |
Instance details Methods safeConvert :: Integer -> ConvertResult UTCTime #
Convertible Integer POSIXTime # |
Instance details Methods safeConvert :: Integer -> ConvertResult POSIXTime #
Convertible Rational UTCTime # |
Instance details Methods safeConvert :: Rational -> ConvertResult UTCTime #
Convertible Rational POSIXTime # |
Instance details Methods safeConvert :: Rational -> ConvertResult POSIXTime #
Convertible CTime Double # |
Instance details Methods safeConvert :: CTime -> ConvertResult Double #
Convertible CTime Int # |
Instance details Methods safeConvert :: CTime -> ConvertResult Int #
Convertible CTime Integer # |
Instance details Methods safeConvert :: CTime -> ConvertResult Integer #
Convertible CTime ClockTime # |
Instance details Methods safeConvert :: CTime -> ConvertResult ClockTime #
Convertible CTime CalendarTime # |
Instance details Methods safeConvert :: CTime -> ConvertResult CalendarTime #
Convertible CTime ZonedTime # |
Instance details Methods safeConvert :: CTime -> ConvertResult ZonedTime #
Convertible CTime UTCTime # |
Instance details Methods safeConvert :: CTime -> ConvertResult UTCTime #
Convertible CTime POSIXTime # |
Instance details Methods safeConvert :: CTime -> ConvertResult POSIXTime #
Convertible ClockTime Integer # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult Integer #
Convertible ClockTime CTime # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult CTime #
Convertible ClockTime CalendarTime # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult CalendarTime #
Convertible ClockTime ZonedTime # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult ZonedTime #
Convertible ClockTime UTCTime # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult UTCTime #
Convertible ClockTime POSIXTime # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult POSIXTime #
Convertible CalendarTime CTime # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult CTime #
Convertible CalendarTime ClockTime # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult ClockTime #
Convertible CalendarTime ZonedTime # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult ZonedTime #
Convertible CalendarTime UTCTime # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult UTCTime #
Convertible CalendarTime POSIXTime # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult POSIXTime #
Convertible TimeDiff Double # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Double #
Convertible TimeDiff Integer # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Integer #
Convertible TimeDiff Rational # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Rational #
Convertible TimeDiff NominalDiffTime # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult NominalDiffTime #
Convertible ZonedTime CTime # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult CTime #
Convertible ZonedTime ClockTime # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult ClockTime #
Convertible ZonedTime CalendarTime # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult CalendarTime #
Convertible ZonedTime UTCTime # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult UTCTime #
Convertible ZonedTime POSIXTime # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult POSIXTime #
Convertible UTCTime Double # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Double #
Convertible UTCTime Int # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Int #
Convertible UTCTime Integer # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Integer #
Convertible UTCTime Rational # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Rational #
Convertible UTCTime CTime # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult CTime #
Convertible UTCTime ClockTime # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult ClockTime #
Convertible UTCTime CalendarTime # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult CalendarTime #
Convertible UTCTime ZonedTime # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult ZonedTime #
Convertible UTCTime POSIXTime # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult POSIXTime #
Convertible POSIXTime Double # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Double #
Convertible POSIXTime Int # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Int #
Convertible POSIXTime Integer # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Integer #
Convertible POSIXTime Rational # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Rational #
Convertible POSIXTime CTime # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult CTime #
Convertible POSIXTime ClockTime # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult ClockTime #
Convertible POSIXTime CalendarTime # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult CalendarTime #
Convertible POSIXTime ZonedTime # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult ZonedTime #
Convertible POSIXTime UTCTime # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult UTCTime #
Convertible NominalDiffTime TimeDiff # |
Instance details Methods safeConvert :: NominalDiffTime -> ConvertResult TimeDiff #