FULLSCREEN
CONTENTS
Project Home Page
.FUNCTION....: Tcomp - Compare Times .ALIAS.......: tcomp .CATEGORY....:
functions
.DISCUSSION..:
Fdate /Ftcomp /Adate /Bdate /Iformat
TCOMP compares the times (time granularity = 1 second) specified on the /A and /B parms.
This is useful when input format /If (file) is specified. It can be used to compare the timestamps of two files and determine which is older.
EXAMPLE:
Fdate /Ftcomp /If /AFooBar.1 /Bfilezzz.1
returns "LT" when /A is less than (earlier than) /B
returns "EQ" when /A is equal to (same as) /B
returns "GT" when /A is greater than (later than) /B
In addition, the errorlevel is set to a special value:
LT = 101
EQ = 102
GT = 103