converting unix time -> normal time
I have a bunch of IDs that were created using unix time.. ie: "958560950" and would like to convert them back to normal (readable) time so I can figure out when they were published. Found a good JavaScript version, but cannot find anyway to do it in Zope/Python. http://dan.drydog.com/unixdatetime.html BZ
I have a bunch of IDs that were created using unix time.. ie: "958560950" and would like to convert them back to normal (readable) time so I can figure out when they were published.
Found a good JavaScript version, but cannot find anyway to do it in Zope/Python.
Take a look at the Zope DateTime class, documented in the online help (Zope Help > API Reference). See also Python's strftime (string format time) function. --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
participants (2)
-
BZ -
J Cameron Cooper