Mercurial > hg > config
annotate python/epoch2date.py @ 656:4d9df2370659
STUB: python/dlna.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 29 Mar 2014 10:08:48 -0700 |
parents | dea3258f005f |
children | 93afa559ce77 |
rev | line source |
---|---|
636 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 | |
4 import argparse | |
5 import datetime | |
6 import os | |
7 import subprocess | |
8 import sys | |
9 import time | |
10 | |
11 def main(args=sys.argv[1:]): | |
12 | |
13 parser = argparse.ArgumentParser(description=__doc__) | |
14 parser.add_argument('seconds_since_epoch', help="seconds since epoch input") | |
15 options = parser.parse_args(args) | |
16 | |
17 | |
18 | |
19 if __name__ == '__main__': | |
20 main() |