date 명령으로 human readable날짜를 얻기는 쉬운데, timestamp를 얻는거는 아무리봐도 모르겠네요 쉘스크립트만으로 timestamp는 어떻게 얻죠 ?
$ date +%s 1094191508
GNU date(1)에서는 위와 같이 하시면 되고, 다른 환경은 다른 분의 대답을... ;)
ruby:
$ ruby -e 'p Time.new.to_i' 1094192033
python:
$ python -c 'import time;print int(time.time())' 1094192137
----http://nohmad.tumblr.com/
[code:1]$ date +%s1094191508[/code:1]
GNU date(1)에서는 위와 같이 하시면 되고, 다른 환경은 다른 분의 대답을... ;)
ruby:
python:
----
http://nohmad.tumblr.com/