date_get_hour(date);
Argument | Description |
---|---|
date | The datetime to check. |
Returns: Real
This function returns the hour of the given datetime value.
myhour = date_get_hour(date_current_datetime());
This would set "myhour" to the current hour.