Re: [Tutor] Hey.need help on time

2012-09-06 Thread Ray Jones
On 09/06/2012 02:08 AM, eryksun wrote: > On Thu, Sep 6, 2012 at 4:25 AM, Ray Jones wrote: >> Why the additional step of calling time.tzset()? Once os.environ['TZ'] >> is set, I've found that time.localtime() responds to the new TZ without >> anything extra. Is that a difference in versions (2.7.3

Re: [Tutor] Hey.need help on time

2012-09-06 Thread eryksun
On Thu, Sep 6, 2012 at 4:25 AM, Ray Jones wrote: > > Why the additional step of calling time.tzset()? Once os.environ['TZ'] > is set, I've found that time.localtime() responds to the new TZ without > anything extra. Is that a difference in versions (2.7.3 here)? It shouldn't strictly be necessary

Re: [Tutor] Hey.need help on time

2012-09-06 Thread Ray Jones
On 09/06/2012 12:51 AM, eryksun wrote: > On Thu, Sep 6, 2012 at 3:21 AM, Keitaro Kaoru wrote: >> 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/

Re: [Tutor] Hey.need help on time

2012-09-06 Thread eryksun
On Thu, Sep 6, 2012 at 3:21 AM, Keitaro Kaoru wrote: > 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' Now just call time.tzset(), and it s

[Tutor] Hey.need help on time

2012-09-06 Thread Keitaro Kaoru
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