chiark / gitweb /
0-pad times (so 13:03 rather than 13:3)
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 10 Dec 2018 16:30:35 +0000 (16:30 +0000)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 10 Dec 2018 16:30:35 +0000 (16:30 +0000)
commands.py

index 3442dce842dff362274246b8a877bf0a56851128..2864bb9de6ae05b1a9c867738e79fafedbc352f8 100755 (executable)
@@ -401,7 +401,7 @@ class UrlLog:
         return max(self.lastseen,self.lastasked)
     def firstmen(self):
         n=time.localtime(time.time())
-        s="%d:%d" % (self.localfirst.tm_hour,self.localfirst.tm_min)
+        s="%02d:%02d" % (self.localfirst.tm_hour,self.localfirst.tm_min)
         if n.tm_yday != self.localfirst.tm_yday:
             s+=time.strftime(" on %d %B", n)
         return s