Here's the description from the TIA help...
The parameters PT and IN are in a different order in my screen shot....
@Sergihno don't forget to change your arrays to 0..23
The order of the parameters is not important, it is the argument that you supply to each parameter that is important.
Read the help for the TP block. The IN parameter is of type BOOL, but you were/are passing a TIME data type, hence the compiler error. Same for the PT parameter - it is of type TIME but you were/are passing a BOOL.