DateHelper::daysInYear
public static function DateHelper::daysInYear
public static DateHelper::daysInYear($date = NULL)
Identifies the number of days in a year for a date.
Parameters
mixed $date: (optional) A DrupalDateTime object or a date string. Defaults to NULL, which means to use the current date.
Return value
int The number of days in the year.
File
- core/lib/Drupal/Core/Datetime/DateHelper.php, line 476