[Buildbot-devel] suggestion: include timezones under "current activity"

Jeff Pitman symbiont at berlios.de
Sat Apr 23 02:27:48 UTC 2005


On Saturday 23 April 2005 09:20, Brian Warner wrote:
| If someone can figure out how to ask the 'time' module for an
| abbreviation of the time zone it's using, I'll add it to the 'time'
| box.

[jeff at kubik doc]$ TZ=US/Eastern python
Python 2.3.5 (#1, Mar 20 2005, 11:09:45)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> print time.tzname
('EST', 'EDT')
>>> print time.daylight
1
>>>

so from inspection that would give:

>>> print time.tzname[time.daylight]

take care,
-- 
-jeff




More information about the devel mailing list