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 => 'February',
    3 => 'March',
    4 => 'April',
    5 => 'May',
    6 => 'June',
    7 => 'July',
    8 => 'August',
    9 => 'September',
    10 => 'October',
    11 => 'November',
    12 => 'December',
  );
}
doc_Drupal
2016-10-29 09:00:50
Comments
Leave a Comment

Please login to continue.