Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Created January 28, 2014 11:20
Show Gist options
  • Select an option

  • Save coderofsalvation/8665940 to your computer and use it in GitHub Desktop.

Select an option

Save coderofsalvation/8665940 to your computer and use it in GitHub Desktop.
returns the current unix timestamp
# 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