0

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

mildred created at6 years ago view count: 2468
report
回复
0
date +%s
6 years ago 回复
0
 php -r "echo time();"
6 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())'
6 years ago 回复

Recent search keywords