Re: datetime:diff() question
- Posted by ghaberek (admin) Dec 08, 2017
- 1390 views
The manual says this:
manual said...
But the code says this:
public function diff(datetime dt1, datetime dt2) return datetimeToSeconds(dt2) - datetimeToSeconds(dt1) end function
If I am indeed "subtracting dt2 from dt1" then I would write that as dt1 - dt2.
I am not sure which is supposed to be correct, the code or the manual.
-Greg