[Zope] converting unix time -> normal time

J Cameron Cooper jccooper at jcameroncooper.com
Mon Aug 18 16:14:28 EDT 2003


>
>
>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."





More information about the Zope mailing list