On Tue, 29 Jan 2002 13:33:02, "Hsueh-ching Yen" <[EMAIL PROTECTED]> wrote:
>
>Is the time zone information of Webware is from the os module?

Yes.
 
>What if I need to display timestamp in different time zone? If I set the
>os.environ['TZ'] in a psp file to a time zone different than the one
>operating system is running in, the standard out also change it's time
>zone too.

Where are you getting the timestamp?

The time.time() function returns a value in the GMT time zone.  All you need to 
do to convert to some other time zone is add or subtract the appropriate 
offset.

>What if different users of the system have different time zone setting?
>How do I use the time (and mx.DateTime) module? Is there some way to
>isolate the time zone setting in Webware or Python?

A web server cannot automatically tell where a user is located.  There is no 
way for a web page to say "the local time in your time zone is XX:XX", unless 
you actually go out and ask the user what time zone he is in.

Once you HAVE the time zone, however, it is easy to adjust all your times 
appropriately.

--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to