date_get_hour_of_year


Description

This function returns the hour of the given datetime value within the year (from the total number of hours for the year, taking into account leap years).


Syntax:

date_get_hour_of_year(date);

Argument Description
date The datetime to check.


Returns:

Real


Example:

myhouryear = date_get_hour_of_year(date_current_datetime());

This would set "myhouryear" to the current hour of the year.