changeset 673:1b8ea91f00a0

STUB: python/epoch2date.py
author Jeff Hammel <k0scist@gmail.com>
date Tue, 06 May 2014 14:26:05 -0700
parents 0eff3f3658ed
children df9d5093573e
files python/epoch2date.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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"""