Skip to content

Instantly share code, notes, and snippets.

@jialechan
Created June 20, 2016 08:22
Show Gist options
  • Save jialechan/09584ca366459720c0445aaeb34b31fe to your computer and use it in GitHub Desktop.
Save jialechan/09584ca366459720c0445aaeb34b31fe to your computer and use it in GitHub Desktop.
linux:
date -d @1466237560
mac:
时间戳转本地时间:
date -r 1354291200
本地时间转时间戳:
date -j -f "%Y-%m-%d %H:%M:%S" "2012-12-01 00:00:00" "+%s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment