The following tasks should be solved in the order below. Write tests for each step!
HH:MM
, where H
and M
can be any decimal digits.hour
, minute
and time
.hour
and minute
functions to the grammar of the expressions. For example:hour(12:38)
minute(someVariable)
time someVariable;
hour
and minute
must be of type time. The return type of these functions is integer.