- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- UTC 0 <-> Locatime conversions
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
тАО05-24-2005 11:39 PM
тАО05-24-2005 11:39 PM
Hopefully this will be simple to solve. Does VMS have support (via system services etc.) to convert local times to a UTC 0 time (and vice versa). The various UTC conversions in the system services seem to use the current TDF, fine at the moment but not so good when requests span a BST-GMT or GMT-BST transition.
I know the CRTL should support this, but I'd rather not go the route of calling the CRTL from Pascal if I can help it.
The system (VMS 7-3-2) is synched to a NTP server and the TDF has been setup to give the correct local time. We have been asked to report all system events (application detected) to another system in UTC 0. However the system still needs to report local time to the operators (as well as converting operator requests to event information from UTC0 to local time).
Any clues would be appreciated.
Best Regards
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2005 11:50 PM
тАО05-24-2005 11:50 PM
Re: UTC 0 <-> Locatime conversions
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 12:17 AM
тАО05-25-2005 12:17 AM
Re: UTC 0 <-> Locatime conversions
The TDF can be examined by calling $NUMUTC. However the TDF is always seems to be set to the current offset (BST in this case). Converting a time (say 1-Jan-2005) where I would I could expect a TDF 0 (done via $ASCUTC and $NUMUTC) gives the current TDF.
FWIW interpreting a UTC time as two VMS times doesn't help.
cheers
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 12:18 AM
тАО05-25-2005 12:18 AM
Re: UTC 0 <-> Locatime conversions
Have a look at the $TIMCON and $NUMUTC system services. $TIMCON converts a 64-bit date/time quadword to 128-bit UTC format.
$NUMUTC takes the 128-bit UTC datum, and cuts it into pieces (year, month_of_year, etc.) The last word of that struct is the TDF in minutes.
Hope this helps,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 01:21 AM
тАО05-25-2005 01:21 AM
Re: UTC 0 <-> Locatime conversions
according to the system services documentation, whenever the output time format is UTC, 'the timezone of the local system is used'.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 01:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 02:27 AM
тАО05-25-2005 02:27 AM
Re: UTC 0 <-> Locatime conversions
Forgot all about that manual - so used to just having to use the System Service and RLT LIB manuals on a daily basis.
Best regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 02:38 AM
тАО05-25-2005 02:38 AM
Re: UTC 0 <-> Locatime conversions
As an attachment a little C program that does convert from local time to UTC (written in C).
Greetz,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2005 02:36 AM
тАО05-26-2005 02:36 AM
Re: UTC 0 <-> Locatime conversions
Got the routines I need now - just constructing the Pascal prototypes and doing testing them to verify that it will all work correctly.
Thanks very much for your help
regards
Brian