The JSON-RPC would return the time in this format "time": 1346289025
. How exactly do I read it? I don't know what kind of format it is. So what time is 1346289025
?
1 Answer
It's unix time, the number of seconds since January 1, 1970. Your programming language probably has an easy standard way of converting it to a date.
-
Depending on the version of
date
your computer has, you can probably convert it withdate -u --date="1970-01-01 +1346289025 sec GMT"
,date -d @1346289025
, ordate -jf %s 1346289025
. Sep 1, 2012 at 6:31