{{tag>Function Function_List Date_And_Time}} ====== HOURS ====== ===== Description ===== Returns an integer constant indicating the number of hours in the provided duration ===== Syntax ===== ''HOURS (duration)'' Can be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Attribute of the Duration type or duration constant or calculation producing duration ===== Returns ===== **Number**: the number of hours in the duration. ===== Example ===== IF HOURS (Task.Duration) = 5 THEN ... ===== Related ===== [[ref:a_f:f:af:minutes|MINUTES]], [[ref:a_f:f:af:seconds|SECONDS]], [[ref:a_f:f:af:days|DAYS]], [[ref:a_f:f:af:weeks|WEEKS]]