$ date +%s
1.2 Get unixtime in python
>>> import time
>>> int(time.time())
2 Unixtime to date in the console
$ date -d "UTC 1970-01-01 1294779314 secs"
or
$ date -ud @1294779314
Resources
http://en.wikipedia.org/wiki/Date_(Unix)
http://www.linuxhowtos.org/Tips%20and%20Tricks/converting_unixtimestamp.htm
No comments:
Post a Comment