bug fix

correct calculation for second
add getter of duration of a hour