TimeDiff


 

TimeDiff>time1,time2,interval,result[,direction]

 

Returns the difference between two times.  Interval can be one of:

 

H: Hours

M: Minutes

S: Seconds

 

The times must be in local system format. Use TimeLocal to generate a time in local system format.

 

The optional parameter direction takes a variable which will be set to 'later' if time2 is later than time1 or 'earlier' if time2 is earlier than time1.

 

See also: TimeAdd, TimeLocal, TimePart

 

Example:

 

GetTime>now

TimeAdd>now,H,12,LaterTime

 

TimeDiff>now,LaterTime,M,numberMins