convertible-1.1.1.1: 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-Inferred
Language | Haskell2010

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 CTime CalendarTime Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult CalendarTime Source #
Convertible CTime ClockTime Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult ClockTime Source #
Convertible CTime POSIXTime Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult POSIXTime Source #
Convertible CTime UTCTime Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult UTCTime Source #
Convertible CTime ZonedTime Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult ZonedTime Source #
Convertible CTime Integer Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult Integer Source #
Convertible CTime Double Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult Double Source #
Convertible CTime Int Source # |
Instance details Methods safeConvert :: CTime -> ConvertResult Int Source #
Convertible Rational POSIXTime Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult POSIXTime Source #
Convertible Rational UTCTime Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult UTCTime Source #
Convertible CalendarTime CTime Source # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult CTime Source #
Convertible CalendarTime ClockTime Source # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult ClockTime Source #
Convertible CalendarTime POSIXTime Source # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult POSIXTime Source #
Convertible CalendarTime UTCTime Source # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult UTCTime Source #
Convertible CalendarTime ZonedTime Source # |
Instance details Methods safeConvert :: CalendarTime -> ConvertResult ZonedTime Source #
Convertible ClockTime CTime Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult CTime Source #
Convertible ClockTime CalendarTime Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult CalendarTime Source #
Convertible ClockTime POSIXTime Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult POSIXTime Source #
Convertible ClockTime UTCTime Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult UTCTime Source #
Convertible ClockTime ZonedTime Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult ZonedTime Source #
Convertible ClockTime Integer Source # |
Instance details Methods safeConvert :: ClockTime -> ConvertResult Integer Source #
Convertible TimeDiff Rational Source # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Rational Source #
Convertible TimeDiff NominalDiffTime Source # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult NominalDiffTime Source #
Convertible TimeDiff Integer Source # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Integer Source #
Convertible TimeDiff Double Source # |
Instance details Methods safeConvert :: TimeDiff -> ConvertResult Double Source #
Convertible NominalDiffTime TimeDiff Source # |
Instance details Methods safeConvert :: NominalDiffTime -> ConvertResult TimeDiff Source #
Convertible POSIXTime CTime Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult CTime Source #
Convertible POSIXTime Rational Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Rational Source #
Convertible POSIXTime CalendarTime Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult CalendarTime Source #
Convertible POSIXTime ClockTime Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult ClockTime Source #
Convertible POSIXTime UTCTime Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult UTCTime Source #
Convertible POSIXTime ZonedTime Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult ZonedTime Source #
Convertible POSIXTime Integer Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Integer Source #
Convertible POSIXTime Double Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Double Source #
Convertible POSIXTime Int Source # |
Instance details Methods safeConvert :: POSIXTime -> ConvertResult Int Source #
Convertible UTCTime CTime Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult CTime Source #
Convertible UTCTime Rational Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Rational Source #
Convertible UTCTime CalendarTime Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult CalendarTime Source #
Convertible UTCTime ClockTime Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult ClockTime Source #
Convertible UTCTime POSIXTime Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult POSIXTime Source #
Convertible UTCTime ZonedTime Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult ZonedTime Source #
Convertible UTCTime Integer Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Integer Source #
Convertible UTCTime Double Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Double Source #
Convertible UTCTime Int Source # |
Instance details Methods safeConvert :: UTCTime -> ConvertResult Int Source #
Convertible ZonedTime CTime Source # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult CTime Source #
Convertible ZonedTime CalendarTime Source # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult CalendarTime Source #
Convertible ZonedTime ClockTime Source # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult ClockTime Source #
Convertible ZonedTime POSIXTime Source # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult POSIXTime Source #
Convertible ZonedTime UTCTime Source # |
Instance details Methods safeConvert :: ZonedTime -> ConvertResult UTCTime Source #
Convertible Integer CTime Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult CTime Source #
Convertible Integer ClockTime Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult ClockTime Source #
Convertible Integer TimeDiff Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult TimeDiff Source #
Convertible Integer POSIXTime Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult POSIXTime Source #
Convertible Integer UTCTime Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult UTCTime Source #
Convertible Double CTime Source # |
Instance details Methods safeConvert :: Double -> ConvertResult CTime Source #
Convertible Double TimeDiff Source # |
Instance details Methods safeConvert :: Double -> ConvertResult TimeDiff Source #
Convertible Double POSIXTime Source # |
Instance details Methods safeConvert :: Double -> ConvertResult POSIXTime Source #
Convertible Double UTCTime Source # |
Instance details Methods safeConvert :: Double -> ConvertResult UTCTime Source #
Convertible Int CTime Source # |
Instance details Methods safeConvert :: Int -> ConvertResult CTime Source #
Convertible Int POSIXTime Source # |
Instance details Methods safeConvert :: Int -> ConvertResult POSIXTime Source #
Convertible Int UTCTime Source # |
Instance details Methods safeConvert :: Int -> ConvertResult UTCTime Source #