You are here

function date_order in Date 6.2

Same name and namespace in other branches
  1. 8 date_api/date_api.module \date_order()
  2. 5.2 date_api.module \date_order()
  3. 7.3 date_api/date_api.module \date_order()
  4. 7 date_api/date_api.module \date_order()
  5. 7.2 date_api/date_api.module \date_order()
3 calls to date_order()
date_php4.inc in date_php4/date_php4.inc
date_repeat_set_month_day in date_repeat/date_repeat_calc.inc
Set a date object to a specific day of the month.
date_repeat_set_year_day in date_repeat/date_repeat_calc.inc
Set a date object to a specific day of the year.
4 string references to 'date_order'
date_order_translated in ./date_api.module
Helper function for BYDAY options in Date Repeat and for converting back and forth from '+1' to 'First'.
date_repeat_dow_count_options in date_repeat/date_repeat.module
Helper function for BYDAY options.
date_t in ./date_api.module
A function to translate ambiguous short date strings.
INTERVAL_options in date_repeat/date_repeat.module

File

./date_api.module, line 2267
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_order() {
  return array(
    '+1' => 'First',
    '+2' => 'Second',
    '+3' => 'Third',
    '+4' => 'Fourth',
    '+5' => 'Fifth',
    '-1' => 'Last',
    '-2' => '-2',
    '-3' => '-3',
    '-4' => '-4',
    '-5' => '-5',
  );
}