function date_now in Date 5.2
Same name and namespace in other branches
- 6.2 date_api.module \date_now()
- 6 date_api.module \date_now()
- 7.3 date_api/date_api.module \date_now()
- 7 date_api/date_api.module \date_now()
- 7.2 date_api/date_api.module \date_now()
A date object for the current time.
Parameters
$timezone: Optional method to force time to a specific timezone, defaults to user timezone, if set, otherwise site timezone.
Return value
object date
21 calls to date_now()
- date_days_in_year in ./
date_api.module - Identify the number of days in a year for a date.
- date_day_of_week in ./
date_api.module - Returns day of week for a given date (0 = Sunday).
- date_example_date in date/
date_admin.inc - Get an example date and make sure the difference between month and day and 12 and 24 hours will be clear.
- date_generate in date/
date_content_generate.inc - date_ical_export in ./
date_api_ical.inc - Turn an array of events into a valid iCalendar file
File
- ./
date_api.module, line 615 - 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_now($timezone = NULL) {
return date_make_date('now', $timezone);
}