[Haskell-cafe] Re: HDBC converting a date sql value to UTCTime

Jules Bean jules at jellybean.co.uk
Sat Jun 21 04:47:14 EDT 2008


George Moschovitis wrote:
> Alternatively is there a way to create a UTCTime value from an epoch 
> integer (no of seconds since epoch).
> I can't find a suitable constructor with Hoogle.

http://www.haskell.org/ghc/docs/latest/html/libraries/time/Data-Time-Clock-POSIX.html

posixSecondsToUTCTime

probably in combination with fromIntegral

Jules


More information about the Haskell-Cafe mailing list