[FRPythoneers] how to list timezone names?

Wostenberg pwos at attbi.com
Thu Sep 5 08:56:56 MDT 2002


I'm doing a Python method in Zope Linux server that shows a list of 
possible timezones (US/Pacific, US/Eastern, etc.) for use with the time 
functions. So far I've hard wired this
# timezones: Return a list of strings that are timezones
tz = ["US/Mountain", "US/Pacific", "US/Central", "US/Eastern", "Other"]
return tz

because I couldn't find a function in the times package. Is there a 
function?
-Alan




More information about the FRPythoneers mailing list