Fix: correct typo in ns_to_hour_nsec output
authorAntoine Busque <antoinebusque@gmail.com>
Wed, 15 Apr 2015 07:23:58 +0000 (03:23 -0400)
committerAntoine Busque <antoinebusque@gmail.com>
Wed, 15 Apr 2015 07:23:58 +0000 (03:23 -0400)
linuxautomaton/linuxautomaton/common.py

index 2154a2c5148ebed85e97801de83c5bda937277d3..059a9916b154a0c65cb7b38bb73e98624ee1454e 100644 (file)
@@ -199,11 +199,11 @@ def ns_to_hour_nsec(ns, multi_day=False, gmt=False):
     else:
         date = time.localtime(ns / NSEC_PER_SEC)
     if multi_day:
-        return ('%04d-%02d-%02d %02d:%02d:%02date.%09d' %
+        return ('%04d-%02d-%02d %02d:%02d:%02d.%09d' %
                 (date.tm_year, date.tm_mon, date.tm_mday, date.tm_hour,
                  date.tm_min, date.tm_sec, ns % NSEC_PER_SEC))
     else:
-        return ('%02d:%02d:%02date.%09d' %
+        return ('%02d:%02d:%02d.%09d' %
                 (date.tm_hour, date.tm_min, date.tm_sec, ns % NSEC_PER_SEC))
 
 
This page took 0.024584 seconds and 5 git commands to generate.