%Hour function


Function
The function retrieves the time component  - hour - of given absolute time.
Declaration
INT %Hour(
   TIME in Arg,
   INT  in timeZone :=  %GetTimeZone()
 )

Parameters
Arg Function argument.
timeZone Forced time zone to convert to a local time. It is set as a time zone offset from UTC during winter in seconds.

Example
%Hour(SysTime)     ; the result is the current hour of the system time

Napíšte komentár