How do I convert this Time integer to a Date in Ruby? -
this question has answer here:
i'm getting stamp external api:
1391655852
and need convert date. have seen lot of conversion pages on internet , on so, seem going other way. i'm not familiar integer format @ all.
why not duplicate question *
this question should not marked duplicate because referenced question mentions seconds since epoch
. while number looking for, had no idea called that. judging quick up-votes , favorite 40 views in less 1 week, judge seconds since epoch
time format not universally known among programmers. users benefit question being asked both ways.
use time.at
this:
t = time.at(i)
Comments
Post a Comment