You are here

function date_calc_get_year in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_php4/date_php4_calc.inc \date_calc_get_year()
  2. 6 date_php4/date_php4_calc.inc \date_calc_get_year()

Returns the current local year in format CCYY.

Parameters

int $days: An integer calculated by date_calc_date_to_days().

Return value

string The current year in four digit format.

26 calls to date_calc_get_year()
date_calc_begin_of_month_by_span in date_php4/date_php4_calc.inc
Returns date of the first day of the month in the number of months from the given date
date_calc_begin_of_next_week in date_php4/date_php4_calc.inc
Find the month day of the beginning of week after given date, using variable_get('date_first_day', 1). Can return weekday of next month.
date_calc_begin_of_prev_week in date_php4/date_php4_calc.inc
Find the month day of the beginning of week before given date, using variable_get('date_first_day', 1). Can return weekday of prev month.
date_calc_begin_of_week in date_php4/date_php4_calc.inc
Find the month day of the beginning of week for given date, using variable_get('date_first_day', 1). Can return weekday of prev month.
date_calc_date_season in date_php4/date_php4_calc.inc
Determines julian date of the given season

... See full list

File

date_php4/date_php4_calc.inc, line 418

Code

function date_calc_get_year() {
  return date_calc_date_now('%Y');
}