You are here

function date_week_days_untranslated in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_api.module \date_week_days_untranslated()
  2. 6 date_api.module \date_week_days_untranslated()
  3. 7.3 date_api/date_api.module \date_week_days_untranslated()
  4. 7 date_api/date_api.module \date_week_days_untranslated()
  5. 7.2 date_api/date_api.module \date_week_days_untranslated()

An untranslated array of week days

Needed for css, translation functions, strtotime(), and other places that use the English versions of these words.

Return value

an array of week day names

4 calls to date_week_days_untranslated()
date_php4.inc in date_php4/date_php4.inc
date_t in ./date_api.module
A function to translate ambiguous short date strings.
date_week_days in ./date_api.module
A translated array of week days
date_week_days_abbr in ./date_api.module
An translated array of week day abbreviations.

File

./date_api.module, line 213
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_week_days_untranslated($refresh = TRUE) {
  static $weekdays;
  if ($refresh || empty($weekdays)) {
    $weekdays = array(
      0 => 'Sunday',
      1 => 'Monday',
      2 => 'Tuesday',
      3 => 'Wednesday',
      4 => 'Thursday',
      5 => 'Friday',
      6 => 'Saturday',
    );
  }
  return $weekdays;
}