/** * Calculates the amount of days in the given month. * @param \System\Calendar\Time a time object to calculate the amount of days in the current month from. * @return int The amount of days in the given month/ */ public static final function getAmountOfDaysInMonth(\System\Calendar\Time $time) { return cal_days_in_month(CAL_GREGORIAN, $time->getMonth(), $time->getYear()); }