]> git.phdru.name Git - bookmarks_db.git/blobdiff - Writers/bkmk_wflad.py
Minor refactoring
[bookmarks_db.git] / Writers / bkmk_wflad.py
index a82c52ca586244e7024bc18ede089afb775d5ab8..189177f56cafc66453c8c45eb2363da79828747e 100644 (file)
@@ -3,11 +3,8 @@
 This file is a part of Bookmarks database and Internet robot.
 """
 
-__version__ = "$Revision$"[11:-2]
-__revision__ = "$Id$"[5:-2]
-__date__ = "$Date$"[7:-2]
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __all__ = ['writer_flad']
@@ -18,13 +15,8 @@ from bkmk_objects import Writer
 
 
 def strftime(s):
-   if s is None:
-      return s
-   n = int(s)
-   if n > 10**10:
-      n /= 10**6
    try:
-      return time.strftime("%a %d %b %Y %T", time.localtime(n))
+      return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
    except (TypeError, ValueError): # s is None or is already formatted
       return s