function date_calc_get_weekday_fullname in Date 6
Same name and namespace in other branches
- 5.2 date_php4/date_php4_calc.inc \date_calc_get_weekday_fullname()
- 6.2 date_php4/date_php4_calc.inc \date_calc_get_weekday_fullname()
Returns the full weekday name for the given date
Parameters
int $day: The day of the month.
int $month: The month.
int $year: The 4 digit year. Do not add leading 0's for years prior to 1000.
Return value
string The full name of the day of the week/
1 call to date_calc_get_weekday_fullname()
- date_calc_format in date_php4/
date_php4_calc.inc - Formats the date in the given format, much like strfmt()
File
- date_php4/
date_php4_calc.inc, line 492
Code
function date_calc_get_weekday_fullname($day = 0, $month = 0, $year = 0) {
if (empty($year)) {
$year = date_calc_get_year();
}
if (empty($month)) {
$month = date_calc_get_month();
}
if (empty($day)) {
$day = date_calc_get_day();
}
$weekday_names = date_week_days();
$weekday = date_dow($day, $month, $year);
return $weekday_names[$weekday];
}