- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Difference in interactive utc$time_setup & cmd...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 05:29 AM
тАО03-29-2006 05:29 AM
Hi all,
what's the difference between running utc$time_setup interactivly and using a cmd string such as (@sys$manager:utc$time_setup.com "" tdf -240 +60) to go to DST? My App (Cache` - from Intersystems) doesn't pick up the time change (they say they use the POSIX time), but checking everything I can think of appears to be correct - what could I be missing? VMS time looks ok, just the App isn't. What is POSIX time - in regards to VMS, time of day, etc? Are they separate areas of timekeeping or all from the same source in the kernel/hardware?
Tnx
Rich
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 07:24 AM
тАО03-29-2006 07:24 AM
Re: Difference in interactive utc$time_setup & cmd line use...
If you use older version of VMS, then Posix RTL's time related functions are different from DEC C RTLs time functions. So what hardware and OS are you using?
Archunan
Archie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 07:46 AM
тАО03-29-2006 07:46 AM
Re: Difference in interactive utc$time_setup & cmd line use...
Apologies for not having included my versions - Hardware is ES47's; a 2 node cluster running VMS 7.3-2 (patch v400) with Multinet v5.1
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2006 06:10 PM
тАО03-29-2006 06:10 PM
Re: Difference in interactive utc$time_setup & cmd line use...
welcome to the OpenVMS ITRC forum.
Did you also check the SYS$*TIME* logicals (timezone info etc.) ?
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 12:02 AM
тАО03-30-2006 12:02 AM
Re: Difference in interactive utc$time_setup & cmd line use...
Thanks for the interest & question - attached is a .txt of what happens when I make the change. Perhaps my expectations are not correct; I'm thinking I should be able to change the time and the system will "act" as if it's truely the "time change" time without a re-boot (I don't intend to re-boot VMS on the actual occurance of the time change).
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 02:17 AM
тАО03-30-2006 02:17 AM
Re: Difference in interactive utc$time_setup & cmd line use...
the timezone did not change (should be EDT ), neither did the DAYLIGHT_SAVING logical (should be 1 for indicating, that you are in daylight savings mode).
But your system time is NOT YET in the DST time interval, so everything is as expected. Your system date is 30-MAR-2006, EDT is not starting before 02-APR-2006 02:00 !
I would strongly suggest to let OpenVMS handle this automatically by setting AUTO_DLIGHT_SAV=1 (this is not a dynmaic parameter, so you would have to reboot prio to 2-APR-2006) or using SYS$EXAMPLES:DAYLIGHT_SAVINGS.COM (please read the comments at the beginning of that file for usage instructions).
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 03:09 AM
тАО03-30-2006 03:09 AM
Re: Difference in interactive utc$time_setup & cmd line use...
$ defi tz gmt0
$ perl -e "print scalar localtime, scalar gmtime"
Thu Mar 30 16:05:46 2006Thu Mar 30 16:05:46 2006
$ deass tz
$ perl -e "print scalar localtime, scalar gmtime"
Thu Mar 30 17:05:58 2006Thu Mar 30 16:05:58 2006
This is on VMS 7.3-2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 03:25 AM
тАО03-30-2006 03:25 AM
Re: Difference in interactive utc$time_setup & cmd line use...
If I'm understanding you correctly, you're saying that because I'm not changing the date to be what the VMS Kernel computes to be the correct event time, the system is *not* really changing the system time - only the piece that show current time. Yes? IOW, to emmulate the actual occurance, I'd need to change the system date to be Apr 2 2006 at 01:59
Sebastian,
Apologies, I don't understand what it is your code lines are explaining - my lack of Perl knowledge. Would you clarify?
Tnx to both of you,
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 04:32 AM
тАО03-30-2006 04:32 AM
Solutionyour application seems to be using the CRTL time functions, which honour the timezone information. As you did not change your timezone to EDT yet, the application still uses the EST timezone. It will be o.k. after 2-APR-2006 02:00. But note that you will have to change the OpenVMS time at 2-APR-2006 02:00 to correctly display the system time during daylight savings time (EDT).
The perl example just shows, that the time printed by the application is being influenced by the timezone (tz logical).
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 06:00 AM
тАО03-30-2006 06:00 AM
Re: Difference in interactive utc$time_setup & cmd line use...
Thank you for the explanation. I follow what you are saying about this. I also changed the systems' date/time (after my previous response to you) to be 2-Apr-2006:01:59:00 (wait a minute) at which point I *was* able to test and see the results I was expecting to see. The main point being, for me, to check my .com to make sure it works correctly.
Thank you to each responder,
Rich