DateHelper::weekDaysAbbr

public static DateHelper::weekDaysAbbr($required = FALSE) Constructs a translated array of week day abbreviations. Parameters bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of week day abbreviations File core/lib/Drupal/Core/Datetime/DateHelper.php, line 185 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function weekDaysAbbr($required = FALS

DateHelper::weekDays

public static DateHelper::weekDays($required = FALSE) Returns a translated array of week names. Parameters bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of week day names File core/lib/Drupal/Core/Datetime/DateHelper.php, line 161 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function weekDays($required = FALSE) { $weekdays = array( t

DateHelper::seconds

public static DateHelper::seconds($format = 's', $required = FALSE, $increment = 1) Constructs an array of seconds. Parameters string $format: (optional) A date format string that indicates the format to use for the seconds. Defaults to 's'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. int $increment: An integer value to increment the values. Defaults to 1. Return value array An array of seconds in the selected format. File core/lib/Dr

DateHelper::monthNamesUntranslated

public static DateHelper::monthNamesUntranslated() Constructs an untranslated array of month names. Return value array An array of month names. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 27 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function monthNamesUntranslated() { // Force the key to use the correct month value, rather than // starting with zero. return array( 1 => 'January', 2 => 'Feb

DateHelper::monthNamesAbbrUntranslated

public static DateHelper::monthNamesAbbrUntranslated() Constructs an untranslated array of abbreviated month names. Return value array An array of month names. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 52 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function monthNamesAbbrUntranslated() { // Force the key to use the correct month value, rather than // starting with zero. return array( 1 => 'Jan',

DateHelper::monthNamesAbbr

public static DateHelper::monthNamesAbbr($required = FALSE) Constructs a translated array of month name abbreviations Parameters bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of month abbreviations. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 112 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function monthNamesAbbr($required = F

DateHelper::monthNames

public static DateHelper::monthNames($required = FALSE) Returns a translated array of month names. Parameters bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of month names. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 81 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function monthNames($required = FALSE) { // Force the key to us

DateHelper::minutes

public static DateHelper::minutes($format = 'i', $required = FALSE, $increment = 1) Constructs an array of minutes. Parameters string $format: (optional) A date format string that indicates the format to use for the minutes. Defaults to 'i'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. int $increment: An integer value to increment the values. Defaults to 1. Return value array An array of minutes in the selected format. File core/lib/Dr

DateHelper::hours

public static DateHelper::hours($format = 'H', $required = FALSE) Constructs an array of hours. Parameters string $format: (optional) A date format string that indicates the format to use for the hours. Defaults to 'H'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of hours in the selected format. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 351 Class DateHelper Defines Gregorian Calendar date

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 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function daysInYear($date = NULL) {