You are here

function _event_day_of_week in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \_event_day_of_week()

Return the day of week with start of week offset applied

Parameters

$stamp GMT timestamp:

Return value

integer day of the week

8 calls to _event_day_of_week()
event_calendar_day in ./event.module
Displays a daily event calendar.
event_calendar_list in ./event.module
Creates a themed list of events.
event_calendar_month in ./event.module
Displays a monthly event calendar.
event_calendar_table in ./event.module
Creates a themed table of events.
event_calendar_week in ./event.module
Displays a weekly event calendar.

... See full list

File

./event.module, line 1387

Code

function _event_day_of_week($stamp) {
  $dow = gmdate('w', $stamp);
  $dow = variable_get('date_first_day', 1) ? $dow == 0 ? 6 : --$dow : $dow;
  return $dow;
}