Quantcast
Channel: User Ja͢ck - Stack Overflow
Viewing all articles
Browse latest Browse all 42

Answer by Ja͢ck for Ruby - epoch time with milliseconds to local time string

$
0
0

Instead of doing an explicit division by 1000, you could also consider using the :millisecond option of Time.at()

> Time.at(0, 1475001600029, :millisecond)2016-09-27 18:40:00 +0000

Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>