Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Timezones and TDF/daylight savings

 
SOLVED
Go to solution
Fredrik.eriksson
Valued Contributor

Timezones and TDF/daylight savings

Hi, This might be a silly question but I can't seem to find any good way to list which is the current Timezone/TDF setting and also anyway to detect if daylight savings is in proper use.

Is there some easy way to do this or do i have to runt SYS$MANAGER:UTC$TIME_SETUP.COM?

Best regards
Fredrik Eriksson
14 REPLIES 14
Oswald Knoppers_1
Valued Contributor

Re: Timezones and TDF/daylight savings

I always look at the logicals *zone*:

"SYS$TIMEZONE_DAYLIGHT_SAVING" = "1"
"SYS$TIMEZONE_DIFFERENTIAL" = "7200"
"SYS$TIMEZONE_NAME" = "MEST"
"SYS$TIMEZONE_RULE" = "MET-1MEST-2,M3.5.0/02,M10.4.0/03"

And the value of the sysgen parameter auto_dlight_sav.

This parameter should be set on 1 (unless you use the DTSS component of DECnet-Plus for changing the time.

Regards,

Oswald
Fredrik.eriksson
Valued Contributor

Re: Timezones and TDF/daylight savings

Thanks for the quick reply.

And since I have another question regarding this same subject I'll reuse this :)

I use NTPD to set the time on my OpenVMS 7.3-2 machines. Does the NTPD work with standard time and OpenVMS adds the +X/-X timezone? Or is it NTPD that sets the timezone options?

Quite worried since the machines didn't do it properly when it switched to summer time this year.

Best regards
Joseph Huber_1
Honored Contributor
Solution

Re: Timezones and TDF/daylight savings


And all together in one command:

@SYS$MANAGER:UTC$TIME_SETUP.COM SHOW
http://www.mpp.mpg.de/~huber
Joseph Huber_1
Honored Contributor

Re: Timezones and TDF/daylight savings

NTP operates on UTC, but uses the SYS$TIMEZONE_DIFFERENTIAL logical to adjust the local VMS time.

So the UTC$TIME_SETUP has to be correct, and the system parameter auto_dlight_sav must be set to make the DST change happen.
http://www.mpp.mpg.de/~huber
Fredrik.eriksson
Valued Contributor

Re: Timezones and TDF/daylight savings

Okey, so basically I need to set the sysgen parameter auto_dlight_save to 1 and it should all be alright?

So steps needed:
1) $ sysgen set auto_dlight_save 1
2) and then a batchjob 26-OCT-2008 03:05:00 that does:
$ @DSA0:[VMS$COMMON.SYSMGR]TCPIP$NTP_SHUTDOWN.COM
$ @DSA0:[VMS$COMMON.SYSMGR]TCPIP$NTP_STARTUP.COM

Then all should be nice 'n dandy? And the only issue is that it won't sync the time properly after DST change between 02.00 and 03.05?

Or is there another way of doing this that's more proper? I've seen something about using "set_vms_logicals" in the ntp configuration files but only seems to bring up pages on google concerning multinet NTP. Is there a differance in NTP clients between multinet ntp and decnet-plus ntp?

Best regards
Fredrik Eriksson