diff python/epoch2date.py @ 666:fe6afbc1a38e

STUB: python/epoch2date.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 17 Apr 2014 12:56:25 -0700
parents 93afa559ce77
children af95905ca177
line wrap: on
line diff
--- a/python/epoch2date.py	Wed Apr 16 17:02:42 2014 -0700
+++ b/python/epoch2date.py	Thu Apr 17 12:56:25 2014 -0700
@@ -23,8 +23,9 @@
     dt2 = datetime.datetime.utcfromtimestamp(options.seconds_since_epoch)
 
     # output
-    print (dt)
-    print (dt2)
+    print ("{} seconds since epoch".format(options.seconds_since_epoch))
+    print ("{} {}".format(dt, time.tzname[time.daylight]))
+    print ("{} UTC".format(dt2))
 
 if __name__ == '__main__':
     main()