question with TZ

Hello,

I want to set up a machine for Atlantic time (New Brunswick).

Now, I have in the sysinit.1 :
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
rtc -l hw


I don’t know the command for Atlantic time zone ?

Anyone can help me please ?

Thanks.

“Michel Blanger” <mbelanger@sigma-techno.com> wrote:

MBl > Hello,
MBl > I want to set up a machine for Atlantic time (New Brunswick).

MBl > Now, I have in the sysinit.1 :
MBl > export TZ=est05edt04,M4.1.0/2,M10.5.0/2
MBl > rtc -l hw

MBl > I don’t know the command for Atlantic time zone ?
MBl > Anyone can help me please ?

MBl > Thanks.

I’m assuming that Atlantic Time is 1 hour before Eastern Time (which
your sysinit.1 file is currently using). If so, just decrement the
standard and daylight savings time offsets by one. I.E.

export TZ=ast04adt03,M4.1.0/2,M10.5.0/2

But since I’m sure you what to know what this all means, here’s an
explanation.

In the “ast04adt03” part you are defining 4 things:

  • “ast” is the three letter abrevation for Atlantic Standard Time
  • 04 means that it’s 4 hours behind UTC or GMT
  • “adt” is the three letter code for Atlantic Daylight Time
  • 03 means that it’s 3 hours behind UTC or GMT

You may use any three letter codes your like. Also, I prefer capital
letters. If you live somewhere where they don’t honor daylight savings
time (I live in AZ and they don’t change the clocks here. What a pain in
you can simply write AZT07.

The “M4.1.0/2” part tells the system when you switch to daylight savings
time.

  • “M4” is the 4th month (April)
  • “1” is the first occurance of (see next line)
  • “0” is Sunday (i.e. “6” is Saturday)
  • “/2” at 2:00 AM.

Likewise, the “M10.5.0/2” tells the system when to switch back to normal
time. It works just like the previous part.
Except the “5” means “last” occurance in the month, if the month has less
than 5 Sundays.

Happy time zoning!

In article <b9rm2f$sg$1@inn.qnx.com>, qtps@earthlink.net says…

“Michel Blanger” <> mbelanger@sigma-techno.com> > wrote:

MBl > Hello,
MBl > I want to set up a machine for Atlantic time (New Brunswick).

MBl > Now, I have in the sysinit.1 :
MBl > export TZ=est05edt04,M4.1.0/2,M10.5.0/2
MBl > rtc -l hw

MBl > I don’t know the command for Atlantic time zone ?
MBl > Anyone can help me please ?

MBl > Thanks.

I’m assuming that Atlantic Time is 1 hour before Eastern Time (which
your sysinit.1 file is currently using). If so, just decrement the
standard and daylight savings time offsets by one. I.E.

export TZ=ast04adt03,M4.1.0/2,M10.5.0/2

Hello Michel,

I can add, actually in my QNX6.1A system, TZ for “Canada (Atlantic)” is:

cana04cana03,M4.1.0/2,M10.5.0/2

In QNX 6 & Photon you can set TZ by:

Shelf → Configure → Time&Date → Time Zone

In 6.1 (I don’t know about 6.2), the shelf plugin just picks up the right string from
/etc/timezone/uc_tz_t
and writes it to file
/etc/TIMEZONE

‘rtc -l hw’ means your RTC clock in BIOS seted up for local time. So, regardless of TZ should not be
problem with time locally, but problems could arrive if your machine is connected to net.

Best regards,
Eduard.