- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- ? F$DELTA_TIME returns a non-standard delta time f...
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-17-2005 06:28 AM
тАО05-17-2005 06:28 AM
In general -- I would like to think that system routines that operate on time values will always return a valid time construct whether absolute or delta.
Robert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 06:34 AM
тАО05-17-2005 06:34 AM
Re: ? F$DELTA_TIME returns a non-standard delta time format
$ WAIT
is also a valid command? It has worked as far back as I can remember ... and still works.
Is this an oversight? or a deliberate act of avoidance?
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 06:38 AM
тАО05-17-2005 06:38 AM
Re: ? F$DELTA_TIME returns a non-standard delta time format
$ submit/after="+''f$delta_time(start,end)'" ...
start and end would be symbols containing the appropriate start and end times. I know the quotes are hard to distinguish sometimes in this forum, so I will repeat the above line below adding spaces between each type of quote above:
$ submit/after= " + ' ' f$delta_time(start,end) ' " ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 07:12 AM
тАО05-17-2005 07:12 AM
Re: ? F$DELTA_TIME returns a non-standard delta time format
$ say = "write sys$output"
$ say -
f$cvtime("+"+f$delta_time(f$cvtime("YESTERDAY","ABSOLUTE"),f$cvtime("TODAY","ABSOLUTE")))
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC format
\+ 1 00:00:00.00\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 07:21 AM
тАО05-17-2005 07:21 AM
Re: ? F$DELTA_TIME returns a non-standard delta time format
$ xa = f$cvtime("YESTERDAY","ABSOLUTE")
$ xb = f$cvtime("TODAY","ABSOLUTE")
$ submit/after="+''f$delta_time(xa,xb)'" login.com
%DCL-W-IVATIME, invalid absolute time - use DD-MMM-YYYY:HH:MM:SS.CC format
\+ 1 00:00:00.00\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 07:21 AM
тАО05-17-2005 07:21 AM
Re: ? F$DELTA_TIME returns a non-standard delta time format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 04:11 PM
тАО05-17-2005 04:11 PM
SolutionExcellent point. F$DELTA_TIME is returning a "standard" delta time as returned by SYS$ASCTIM. It's implemented as
$BINTIM P1 => Time1
$BINTIM P2 => Time2
LIB$SUB_TIMES Delta,Time1,Time2
$ASCTIM Delta => Output String
The trouble here is that DCL has extended the standard time string formats, and requires delta times to have a hyphen between the days and time fields.
It seems reasonable that it should return a delta time in DCL delta time format, rather than $ASCTIM format, and maybe trim off any leading white space at the same time. I'll send a suggestion to the engineer responsible.
(since F$DELTA time is new, hopefully not too many people have written code dependent on the output format, otherwise we might need to add a flag "DCL" to request a DCL format string)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 06:54 PM
тАО05-17-2005 06:54 PM
Re: ? F$DELTA_TIME returns a non-standard delta time format
Thank you for bringing this to our attention.
I have exchanged mail with John Gillings
based on his feedback I'll modify F$DELTA_TIME
to accept an optinal format argument
F$DELTA_TIME(start-time,end-time [,format])
format = "DCL" or "ASCTIM" (default)
This will show up in a future DCL kit for
V8.2 and V7.3-2 and will be incorporated
into the next VMS version.
Regards,
Guy Peleg
OpenVMS Engineering
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 08:00 PM
тАО05-17-2005 08:00 PM
Re: ? F$DELTA_TIME returns a non-standard delta time format
Grab your chance!!
Give Guy (at least) 4 points, and see hime get his (WELL deserved) hat!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 08:20 PM
тАО05-17-2005 08:20 PM
Re: ? F$DELTA_TIME returns a non-standard delta time format
this thread set me thinking.
At this moment, F$DELTA is returning a time syntax, and you just promised to add a format specifier for ASCTIM or DCL format.
Would it be asking very much extra to add (more or less like F$CVTIM) the format specifiers SECONDS, MINUTES, HOURS, DAYS (WEEKS?, MONTHS?, YEARS?) as rounded-down integer values? I know for sure that at least _WE_ have regular use for them!
I know that this would be fairly easy to do in DCL, but it DOES require a number of string manipulations and arithmatic, and I have for a long time already been pleased with those formats from f$cvtime.
TIA
Proost.
Have one on me.
jpe