In article <921221000127.20407c7f@WSC.COLORADO.EDU>, STU011649835@WSC.COLORADO.EDU : The Macintosh Lab Manager : VIE Systems Operator : WSCMRT SysOp : Mountain Rescue) (Chris Kenned writes...
#Hello to all-
#
# i am writing a program (DCL) that upon execution writes time/day
#to a file. This works. Next I am trying to write another program which
#reads the file and takes the first time entry and compares( finds difference)
#with the next one. This is repeated until the end of the file.
#I.E. time card program. The output (total time comparison) is placed
#to file2 to be typed/printed out (either in a 10 base or 60 base).
# My problem is figuring out how to compare 2 time values and find the
#difference. I do not have access to the manuals ( if I did I would not know
#where to start). The online help dosen't provide much help. If you
#(anyone) have any sample programs, or anything else that might be of help,
#PLEASE send..... Fortran, Pascal, Basic, C and DCl are all ok, but prefer
#DCL programs. Thank you all.
# Send any replies to stu011649835@wsc.colorado.edu , or
#org_mrt@wsc.colorado.edu . I am not subscribed to INFO-VAX.
HELP RTL LIB$ LIB$SUB_TIMES
The Subtract Two Quadword Times routine subtracts two VMS
internal-time-format times.
HELP SYS $BINTIM
Converts an ASCII string to an absolute or delta time value in
the system 64-bit time format...
Algorithm:
1. $BINTIM first time
2. $BINTIM second time
3. LIB$SUB_TIMES #1 from #2
4. If result is LIB$_NORMAL then time 1 is before time 2
5. If result is LIB$_NEGTIM then time 1 is AFTER time 2
#BTW : Merry Christmas, and have a happy new year...........