Logo

Programming-Idioms

History of Idiom 98 > diff from v1 to v2

Edit summary for version 2 by :

Version 1

2015-10-28, 11:56:52

Version 2

2015-10-29, 12:54:20

Idiom #98 Epoch Seconds to Datetime

Given a timestamp (a number of seconds) in epoch-time (i.e. 0 == 1970-01-01 00:00:00), convert them to a datetime.

Idiom #98 Epoch seconds to date object

Convert a timestamp ts (number of seconds in epoch-time) to a date with time d. E.g. 0 -> 1970-01-01 00:00:00