Converting time from GMT to another timezone

Jp Calderone exarkun at intarweb.us
Fri Mar 21 17:38:57 EST 2003


On Fri, Mar 21, 2003 at 02:12:10PM -0800, Ehab Teima wrote:
> Hello,
> 
> I tried all possible ways to convert time from GMT to another timezone
> but I could not. In particular, I'm interested in converting the
> machine's clock that has the timezone defined as GMT to eastern
> standard time. Is there any way to do that, on Windows?

    import time
    now_EST = time.time() - 18000
    print time.asctime(time.gmtime(now_EST))

  Jp

> 
> Thanks,
> Ehab
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-- 
"Pascal is Pascal is Pascal is dog meat."
                -- M. Devine and P. Larson, Computer Science 340
-- 
 up 1 day, 17:59, 7 users, load average: 0.03, 0.01, 0.00





More information about the Python-list mailing list