]> git.phdru.name Git - bookmarks_db.git/commitdiff
Pretty-print last_modified.
authorOleg Broytman <phd@phdru.name>
Sun, 18 Dec 2011 17:35:19 +0000 (17:35 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 18 Dec 2011 17:35:19 +0000 (17:35 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@350 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Writers/bkmk_wflad.py
Writers/bkmk_wflad_err.py

index a4e88fcb7c9cd27d8fb9f2283cf47ca7ece4dcff..6b6d17458c0e1013b80c4f9d8eae28f5ba45c111 100644 (file)
@@ -38,7 +38,7 @@ Folder: %s
 AddDate: %s
 Comment: %s
 LastModified: %s
-""" % (level, f.name, strftime(f.add_date), f.comment, f.last_modified or ''))
+""" % (level, f.name, strftime(f.add_date), f.comment, strftime(f.last_modified)))
 
    def bookmark(self, b, level):
       self.outfile.write("""
index 5370d1be4a1ed0e550b7e9080c5f4e44a569278a..356a65e66f67e32bc3df60ce0832063d8432c517 100644 (file)
@@ -17,10 +17,6 @@ import time
 from bkmk_wflad import writer_flad
 
 
-def strftime(s):
-   return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
-
-
 class writer_flad_err(writer_flad):
    filename = "bookmarks_db.errors"