WeatherDuino Forum

Full Version: Australia Timezone.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I've just got may AQ III up & Going with a Sps30.
Not Quite sure I've got may head around the Zimezone setting though.

In NSW we have AEST (Aust Eastern Standard Time), GMT +10, then in Summer, AEDT (Aust Eastern Daylight Savings Time), GMT +11.

I am displaying the right time at present, but DST starts in a few weeks.
Time String I have is this:-
const char* TZ_info = "AEST-10AEDT,M10.1.0/02:00:00,M4.1.0/03:00:00"; // --> Australia/NSW Timezone

But it Just doesn't look right & I don't quite understand the parameters.

AEDT starts on the first Sunday of October @ 2:00am, and ends on the first Sunday in April @3:00am.

Can anyone help me out with the correct string.

Cheers

Phil.
Hi Phil,

I'm not sure, but I think it should be:

Code:
const char* TZ_info = "AEST-10AEDT,M4.1.0/03:00:00,M10.1.0/02:00:00"; // --> Australia/NSW Timezone


The same in a short format:
 
Code:
const char* TZ_info = "AEST-10AEDT,M4.1.0/3,M10.1.0/2"; // --> Australia/NSW Timezone


Cheers
Werk_AG
(22-09-2021, 22:09)Werk_AG Wrote: [ -> ] 
Code:
const char* TZ_info = "AEST-10AEDT,M4.1.0/03:00:00,M10.1.0/02:00:00"; // --> Australia/NSW Timezone

Does that not read as the AEDT Starts in M4 & ends in M10, which would be adding the extra hour over our Winter?

Given we are Southern Hemisphere?
Hi Phil,

As said I'm not sure about the correct Posix string for your location.
After some research I found this one, for Australia / Sidney: "AEST-10AEDT,M10.1.0,M4.1.0/3"
and this one for West Australia:

WST-8WDT-9,M10.1.0/2,M4.1.0/3

[attachment=2942]

That seems to point that the string you posted on the first post is correct.

Rgs.