Skip to content

Instantly share code, notes, and snippets.

@cou929
Created December 18, 2012 07:28
Show Gist options
  • Save cou929/4325825 to your computer and use it in GitHub Desktop.
Save cou929/4325825 to your computer and use it in GitHub Desktop.
to test usage of strptime and strftime of Time::Piece
$ perl -MTime::Piece -le '$t = Time::Piece->strptime("2012-12-10", "%Y-%m-%d"); print $t->strftime("%Y/%m/%d %H:%M:%S")'
2012/12/10 00:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment