date_get_hour(date)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the current hour of the given date-time value and returns it.

Parameters

Parameter Data Type Description
date time_t the date-time value to get the current hour of

Return Values

integer: Returns the hour of the date-time value.

Example Call

// demonstrates getting the current hour
var hour;
hour = date_get_hour(date_current_time());