HudhaifaS\FieldType\DBGreatDate::TimeDiffIn
Gets the time difference, but always returns it in a certain format
Signature
public function TimeDiffIn(string
$format,
[
$another = NULL] )
Parameters
$format
— string- The format, could be one of these:
'seconds', 'minutes', 'hours', 'days', 'months', 'years'. $another
—
Returns
- string
- The resulting formatted period