Skip to content

Instantly share code, notes, and snippets.

@narusemotoki
Created May 23, 2013 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save narusemotoki/5632951 to your computer and use it in GitHub Desktop.
Save narusemotoki/5632951 to your computer and use it in GitHub Desktop.
zshでタイムスタンプを表示するコマンド。.zshrcに追記して設定を読みなおしてから「$ timestamp」
timestamp() {
printf '%ld\n' $(expr `date +%s%N` / 1000000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment