The time library from Date and Time that is available for blockly is able to extract the hour and minutes from a date time: