Skip to content

Instantly share code, notes, and snippets.

@jnbek
Created March 29, 2012 21:19
Show Gist options
  • Save jnbek/2243913 to your computer and use it in GitHub Desktop.
Save jnbek/2243913 to your computer and use it in GitHub Desktop.
POSIX strftime
perl -MPOSIX -e'$t=strftime("%F_%T_%Z",localtime); $t =~ s/(\s|\:)/-/g; print $t,"\n";'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment