Created
January 28, 2014 11:20
-
-
Save coderofsalvation/8665940 to your computer and use it in GitHub Desktop.
returns the current unix timestamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # returns the current unix timestamp | |
| # usage: echo "$(timestamp)" | |
| timestamp(){ | |
| date +%s | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment