I have an integral value that is the number of seconds since the Epoch. I can output it as a big integer, but I want to show it as a human-readable date and time.
For example:
secToTimestamp :: Int32 -> [Char]
which returns something like:
2016-01-01 14:11:11
Possible use
unix-time
moduleIn the interests of having a simple
time
based solution (sincetime
is the defacto module for manipulating anything time related):