How to convert epoch to gregorian datetime in haskell

Viewed 1293

Let's say I have an integer representing Epoch time, for example epoch = 1499055085, and I want to convert it to UTCTime in Haskell. How can I do this?

In other languages this is a very trivial task, why is it so difficult in haskell?

2 Answers
Related