[Info-vax] DCL Time Manipulation

James J. O`Shea seamas_ose at ameritech.net
Wed Aug 17 13:41:23 EDT 2011


I'm trying to get the amount of time a user is logged in monthy, using ACCOUNTNG. How can I get the sum of times in DCL?
 
The following sum is less than 24, so it returns the correct value.
 T1="0 06:00:00.00"
  T2="0 10:00:00.00
  TOTAL=F$CVTIME(T1+"+"+T2,,"TIME")"
  $ sho symbol total
  TOTAL = "16:00:00.00"
  
The total of the below is 25 hours but it reports only 1 hour.  Do you know how to return the correct value?
  T1="0 06:00:00.00"
  T2="0 19:00:00.00"
  TOTAL=F$CVTIME(T1+"+"+T2,,"TIME")"
 $sho symbol total
  TOTAL = "01:00:00.00"
 

 
 
 
Thanks,
Jim O'Shea 
 



More information about the Info-vax mailing list