Last active
August 29, 2015 14:12
-
-
Save pontikos/1b6bb2a949749c3c9786 to your computer and use it in GitHub Desktop.
Format time given on stdin in format specified by first argument to stdout in format given by second argument.
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
| import time | |
| import sys | |
| print time.strftime(sys.argv[2], time.strptime(sys.stdin.read().strip(), sys.argv[1])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment