Groups | Search | Server Info | Login | Register
Groups > comp.soft-sys.math.maple > #1364
| Newsgroups | comp.soft-sys.math.maple |
|---|---|
| Date | 2022-06-21 09:13 -0700 |
| References | <e08bea44-59ad-4cf1-ac87-082b24ff742cn@googlegroups.com> |
| Message-ID | <70c79900-625b-44cf-ae82-1f443abb66fdn@googlegroups.com> (permalink) |
| Subject | Re: Time zones |
| From | acer <maple@rogers.com> |
On Thursday, June 16, 2022 at 9:17:51 PM UTC-4, jfh wrote:
> Wishing to use Date in my own time zone I tried
>
> > now:=Date(timezone="NZST");
> Error, (in Date:-ModuleCopy) unrecognised timezone: NZST
>
> Maple must have a list of acceptable time zone names. How does one find it?
> Experimentation eventually found that at present the following works, though of course it will need changing in September when we start daylight saving., and back again in April 2023.
>
> > now:=Date(timezone="GMT+12:00");
> now := <Date: 2022-06-17T13:07:28 GMT+12:00>
Using the 2nd column here, ie. "TZ database name",
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
restart;
with(Calendar):
d1:=Date(timezone="Pacific/Auckland");
d1 := <Date: 2022-06-22T04:09:07 New Zealand Time>
d2:=Date(timezone="GMT+12:00")
d2 := <Date: 2022-06-22T04:09:07 GMT+12:00>
DateDifference(Date(timezone="Pacific/Auckland"),
Date(timezone="GMT+12:00"));
0
Format(d1);
"2022-06-21T12:09:07 EDT"
Format(d2);
"2022-06-21T12:09:07 EDT"
Back to comp.soft-sys.math.maple | Previous | Next — Previous in thread | Next in thread | Find similar
Time zones jfh <harperjf2@gmail.com> - 2022-06-16 18:17 -0700
Re: Time zones acer <maple@rogers.com> - 2022-06-21 09:13 -0700
Re: Time zones jfh <harperjf2@gmail.com> - 2022-06-21 14:37 -0700
Re: Time zones acer <maple@rogers.com> - 2022-06-21 15:01 -0700
Re: Time zones acer <maple@rogers.com> - 2022-06-21 15:05 -0700
csiph-web