0

命令行获取当前时间的 Unix 时间戳 ( Unix Timestamp )

mildred created at5 years ago view count: 2423
report
回复
0
date +%s
5 years ago 回复
0
 php -r "echo time();"
5 years ago 回复
0
neo #
when in doubt, use brute force
  • PHP: php -r 'echo microtime(TRUE);'
  • ruby: ruby -e 'puts Time.now.to_f'
  • python: python -c 'import time; print time.time()'
  • node.js: node -e 'console.log(Date.now())'
5 years ago 回复

Recent search keywords