You are here

function date_week_days_untranslated in Date 5.2

Same name and namespace in other branches
  1. 6.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

2 calls to date_week_days_untranslated()
date_php4.inc in date_php4/date_php4.inc
date_t in ./date_api.module
A version of the t() function for date parts that need translation.

File

./date_api.module, line 157
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;
}