date_get_hour

Returns the hour corresponding to the datetime.

Syntax:

date_get_hour(date);


Argument Description
date The datetime to check.


Returns: Real


Description

This function returns the hour of the given datetime value.


Example:

myhour = date_get_hour(date_current_datetime());

This would set "myhour" to the current hour.


Back: Date And Time
Next: date_get_hour_of_year
© Copyright YoYo Games Ltd. 2018 All Rights Reserved