[Tutor] Hey.need help on time
Keitaro Kaoru
tokyo.rook at gmail.com
Thu Sep 6 09:21:05 CEST 2012
been trying to change this so it wont use my server time. but my
actual time here in the us.EST. havent been able to figure it out
def sstime(user, body, m):
os.environ['TZ'] = 'US/Eastern'
tstr1 = time.strftime("%a, %b-%d-%Y", time.tzset())
tstr2 = time.strftime("%I:%M:%S %p", time.tzset())
tstr3 = time.strftime("%Z", time.tzset())
return Html("Today is <b><i>%s</i></b> and The current time is
<b><i>%s</i></b> <b><i>(%s)</i></b>" % (tstr1, tstr2, tstr3))
--
~~Austin
More information about the Tutor
mailing list