Re: datetime:diff() question

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu