Commits

Serj Zavadsky committed 660a41b

additional date formatting
- 0hour, 0day, 0hour: '0' added to one-digit value

  • Participants
  • Parent commits c608424

Comments (0)

Files changed (1)

File ucsvlog/Logger.py

             'year':now.year,
             'syear':unicode(now.year)[2:],
             'month':now.month,
+            '0month': '%0.2d' % now.month,
             'day':now.day,
+            '0day': '%0.2d' % now.day,
             'hour':now.hour,
+            '0hour': '%0.2d' % now.hour,
             '2_hour':(now.hour/2)*2,
             '3_hour':(now.hour/3)*3,
             '5_hour':(now.hour/5)*5,