Skip to content

Instantly share code, notes, and snippets.

@wh13371
Created July 6, 2015 15:31
Show Gist options
  • Save wh13371/0314ad0e5cae3cdada12 to your computer and use it in GitHub Desktop.
Save wh13371/0314ad0e5cae3cdada12 to your computer and use it in GitHub Desktop.
bash - epoch
#!/bin/bash
epoch=$(date +%s)
t=$(date +%Y_%m_%d_%H_%M_%S)
sleep 0.1
echo $epoch
echo $t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment