Easy Tutorial
❮ Php Constants Func String Addslashes ❯

PHP getdate() Function

PHP Date/Time Reference Manual

Example

Returns the date/time information for the current local date/time:


Definition and Usage

The getdate() function returns the date/time information for a timestamp or the current local date/time.

Syntax

Parameter Description
timestamp Optional. Specifies an integer Unix timestamp. Defaults to the current local time (time()).

Technical Details

Return Value: Returns an associative array with information related to the timestamp: [seconds] - seconds<br> [minutes] - minutes<br> [hours] - hours<br> [mday] - day of the month<br> [wday] - day of the week<br> [mon] - month<br> [year] - year<br> [yday] - day of the year<br> [weekday] - name of the weekday<br> [month] - name of the month<br> [0] - number of seconds since the Unix Epoch
PHP Version: 4+
--- ---

❮ Php Constants Func String Addslashes ❯