Lines Matching refs:days
864 return I18N::number((int) ($row->days / 365.25));
964 * @param int $days The age from the database record
968 private function calculateAge(int $days): string argument
970 if ($days < 31) {
971 return I18N::plural('%s day', '%s days', $days, I18N::number($days));
974 if ($days < 365) {
975 $months = (int) ($days / 30.5);
979 $years = (int) ($days / 365.25);
1008 'age' => $this->calculateAge((int) $row->days),
1284 $days = (int) $this->birthAndDeathQuery($sex)
1289 return $this->calculateAge($days);
1292 return I18N::number((int) ($days / 365.25));