You are here

function date_order in Date 5.2

Same name and namespace in other branches
  1. 8 date_api/date_api.module \date_order()
  2. 6.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.
1 string reference 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'.

File

./date_api.module, line 1708
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' => 'Next to last',
    '-3' => 'Third from last',
    '-4' => 'Fourth from last',
    '-5' => 'Fifth from last',
  );
}