You could use the colon only for the one that sets it to a time
and for duration use decimal point format as in 2.5 for two and
a half hours. Another way if you insist on having a colon for
both formats is to add maybe a d after the one for duration as
in 2:30d to indicate two hours thirty minutes. Of course you
will write conditional statements to use these the way you wish.