Mercurial > hg > config
diff python/epoch2date.py @ 673:1b8ea91f00a0
STUB: python/epoch2date.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 06 May 2014 14:26:05 -0700 |
parents | bcf5781b615e |
children | 1e1bed921c08 |
line wrap: on
line diff
--- a/python/epoch2date.py Mon May 05 01:47:27 2014 -0700 +++ b/python/epoch2date.py Tue May 06 14:26:05 2014 -0700 @@ -20,6 +20,13 @@ import sys import time +try: + # use dateutil parser if available + from dateutil.parser import parse as parse_date +except ImportError: + parse_date = None + + def main(args=sys.argv[1:]): """CLI"""