annotate python/epoch2date.py @ 664:ffb75d832afe

make sneaky urls
author Jeff Hammel <k0scist@gmail.com>
date Mon, 07 Apr 2014 19:24:57 -0700
parents dea3258f005f
children 93afa559ce77
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
636
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 import argparse
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import datetime
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 import os
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import subprocess
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 import sys
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 import time
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 def main(args=sys.argv[1:]):
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 parser = argparse.ArgumentParser(description=__doc__)
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 parser.add_argument('seconds_since_epoch', help="seconds since epoch input")
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 options = parser.parse_args(args)
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 if __name__ == '__main__':
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 main()