Created
December 18, 2012 07:28
-
-
Save cou929/4325825 to your computer and use it in GitHub Desktop.
to test usage of strptime and strftime of Time::Piece
This file contains 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
$ 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