This language bar is your friend. Select your favorite languages!

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

#Edit dateEdit SummaryEditor
👁 Δ 19 2019-01-24, 12:33 [JS] corrected things 1.7.4
👁 Δ 18 2019-01-24, 12:31 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 17 2018-08-31, 13:13 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 16 2018-06-12, 17:48 New Rust implementation by user [GobbleCock] GobbleCock
👁 Δ 15 2017-10-28, 10:26 New Python implementation by user [Oldboy] Oldboy
👁 Δ 14 2016-12-06, 12:39 [Go] ts has type int64. programming-idioms.org
👁 Δ 13 2016-04-17, 21:20 New Pascal implementation by user [Bart] Bart
👁 Δ 12 2016-02-18, 16:58 New Java implementation by user [encapsulator]
👁 Δ 11 2016-02-17, 07:27 New Java implementation by user [encapsulator]
👁 Δ 10 2016-02-16, 19:50 New Ruby implementation by user [mg]
👁 Δ 9 2016-01-01, 01:44 [Go] +DemoURL
👁 Δ 8 2016-01-01, 00:50 [Go] misread
👁 Δ 7 2016-01-01, 00:50 New Go implementation by user [lck]
👁 Δ 6 2015-12-30, 01:35 New Dart implementation by user [ganymede]
👁 Δ 5 2015-11-30, 12:37 New D implementation by user [piou]
👁 Δ 4 2015-11-04, 00:06 New D implementation by user [piou]
👁 Δ 3 2015-10-29, 14:05
👁 Δ 2 2015-10-29, 12:54
1 2015-10-28, 11:56