You are here

function date_calc_date_now in Date 6.2

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

Returns the current local date.

NOTE: This function retrieves the local date using strftime(), which may or may not be 32-bit safe on your system.

Parameters

string $format: The string indicating how to format the output.

Return value

string The current date in the specified format.

4 calls to date_calc_date_now()
date_calc_format in date_php4/date_php4_calc.inc
Formats the date in the given format, much like strfmt()
date_calc_get_day in date_php4/date_php4_calc.inc
Returns the current local day in format DD
date_calc_get_month in date_php4/date_php4_calc.inc
Returns the current local month in format MM
date_calc_get_year in date_php4/date_php4_calc.inc
Returns the current local year in format CCYY.

File

date_php4/date_php4_calc.inc, line 405

Code

function date_calc_date_now($format = DATE_CALC_FORMAT) {
  return strftime($format, time());
}