Skip to content

Instantly share code, notes, and snippets.

@antun
Last active January 9, 2024 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antun/4964149 to your computer and use it in GitHub Desktop.
Save antun/4964149 to your computer and use it in GitHub Desktop.
Converts time from seconds since 1970 to a human readable date
#!/usr/bin/env python
import sys, time
if __name__ == '__main__':
args = sys.argv[1:]
for arg in args:
print(time.ctime( int(arg) ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment