Re: datetime:diff() question
- Posted by Lnettnay Dec 08, 2017
- 1389 views
The docs are wrong! dt1 is subtracted from dt2
This is from std/datetime.e
public function diff(datetime dt1, datetime dt2) return datetimeToSeconds(dt2) - datetimeToSeconds(dt1) end function
The example in the manual is correct.
Lonny