added LSL2 stored procedures
This commit is contained in:
14
LSL2/STPROC/CALC_ELAP.txt
Normal file
14
LSL2/STPROC/CALC_ELAP.txt
Normal file
@ -0,0 +1,14 @@
|
||||
compile function calc_elap(DateIn, TimeIn, DateOut, TimeOut)
|
||||
|
||||
Tot = 0
|
||||
if DateOut and DateIn then
|
||||
DateDiff = DateOut - DateIn
|
||||
SecondsToAdd = 0
|
||||
if DateDiff then
|
||||
SecondsToAdd = 86400*DateDiff
|
||||
end
|
||||
Tans = ( TimeOut + SecondsToAdd ) - TimeIn
|
||||
Tot = ( ( Tans /3600) *100 )
|
||||
end
|
||||
return Tot
|
||||
|
Reference in New Issue
Block a user