Hour of the day of the observation (floating point).
Syntax: @hourf
Return: series
Returns the floating point hour (0–23+, including fractional portions) associated with each observation in the workfile (e.g., 9:30 a.m. returns 9.5, and 5:15 p.m. returns 17.25).
• If the workfile is of lower than hourly frequency, all observations will be set to 0.
• If the workfile is undated, observations will be set to -1.
Examples
series dt = @hourf
saves the floating point hours of the day into the series DT.
The command
smpl if @hourf >= 12.5
sets the sample to only include observations after 12:30 p.m.
Cross-references