- n = time:secsTo(ref)
- n = time:msecsTo(ref)
SYNOPSIS
DESCRIPTION
Calculates the difference between two time values.
RETURN VALUE
The time difference between ref and time in seconds or milliseconds, respectively.
ERRORS
Raises an error if time or ref is not a time instance.
EXAMPLE
>
>
>
t1 = clock.newTime(10, 30, 0)
t2 = clock.newTime(12, 30, 0)
print(t1:secsTo(t2))
7200