This function returns the second of the given datetime value.
date_get_second(date);
Argument | Type | Description |
---|---|---|
date | Datetime | The datetime to check. |
mysecond = date_get_second(date_current_datetime());
This would set mysecond to the current second.