Files
harbour-core/contrib/hbnf/tests/elapsed.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

21 lines
485 B
Plaintext

#require "hbnf"
PROCEDURE Main()
LOCAL dStart, dEnd, cTimeStart, cTimeEnd, n, aDataTest
dStart := hb_SToD( "19901128" )
dEnd := hb_SToD( "19901130" )
cTimeStart := "08:00:00"
cTimeEnd := "12:10:30"
aDataTest := ft_Elapsed( dStart, dEnd, cTimeStart, cTimeEnd )
FOR n := 1 TO 4
? aDataTest[ n, 1 ], Str( aDataTest[ n, 2 ], 12, 4 )
?? " "
?? iif( n == 1, "Days", iif( n == 2, "Hours", iif( n == 3, "Mins.", "Secs." ) ) )
NEXT
RETURN