diffDates()

Finds the differents between 2 dates.

This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 60 times.

Parameters

{Date} dEnd
Ending date.
{Date} dStart
Starting date.
{boolean=} opt_onlyRemainder Optional, Default:false
Determines whether or not the values returned will show the remainder values instead of the full values for each unit of measure.

Returns

{Object}
An object containing all of the following measurements in the corresponding object properties: years, months, days, hours, minutes and seconds. If opt_onlyRemainder is specified as true all of the object's properties will not include the measures for the next highest unit of measure. If op_onlyRemainder is supplied weekDays and weeks are added to this returned object. If opt_onlyRemainder is not specified or is false all of the object's properties will individual calculations indicating the difference in time.