Mercurial > hg > config
changeset 636:dea3258f005f
stub
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 27 Feb 2014 10:44:13 -0800 |
parents | 2271c276a43c |
children | a9c390903d61 |
files | python/epoch2date.py |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/epoch2date.py Thu Feb 27 10:44:13 2014 -0800 @@ -0,0 +1,20 @@ +#!/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()