How do I pretty-print a datetime in Haskell?
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
I could divide by (seconds in one year) to get the years since 1970, but that wouldn't take in to account things like leap seconds.
There is a function that takes seconds since midnight, but I couldn't find one that takes seconds since epoch.
Curry that shit
Do you have other gifs like that?
>>57469190
>>57469190
> on /g/
> cant into reverse image searching
Get the fuck outta here you normie fuck.
>>57469251
kek
>>57469282
>>57467307
>How do I pretty-print a datetime in Haskell?
If you just want some generic human-readable format, ‘show’ will do fine. If you want to customize the format, use ‘formatTime’
>>57469282
>>57469465
Less nigger bitches, more amazing pixel art
>>57469251
Thank you
I wish i could create pixel art like these.