public function humanize() { $now = IntlCalendar::
fromDateTime(self::
now($this->timezone
));
$time =
$this->
getCalendar()->
getTime();
$years =
$now->
fieldDifference($time, IntlCalendar::FIELD_YEAR
);
$months =
$now->
fieldDifference($time, IntlCalendar::FIELD_MONTH
);
$days =
$now->
fieldDifference($time, IntlCalendar::FIELD_DAY_OF_YEAR
);
$hours =
$now->
fieldDifference($time, IntlCalendar::FIELD_HOUR_OF_DAY
);
$minutes =
$now->
fieldDifference($time, IntlCalendar::FIELD_MINUTE
);
$phrase = null;
if ($years !== 0
) { $phrase =
lang('Time.years',
[abs($years)]);
$before =
$years < 0;
} elseif ($months !== 0
) {