Mercurial > hg > config
view python/epoch2date.py @ 650:9cb40c01c10a
illustrate downloading a package and rerunning via exec
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 24 Mar 2014 13:54:24 -0700 |
parents | dea3258f005f |
children | 93afa559ce77 |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import datetime import os import subprocess import sys import time def main(args=sys.argv[1:]): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('seconds_since_epoch', help="seconds since epoch input") options = parser.parse_args(args) if __name__ == '__main__': main()