git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@353
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
+ if s is None:
+ return s
+ n = int(s)
+ if n > 10**9:
+ n /= 10**6
- return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
+ return time.strftime("%a %d %b %Y %T", time.localtime(n))
except (TypeError, ValueError): # s is None or is already formatted
return s
except (TypeError, ValueError): # s is None or is already formatted
return s