def truncate_hour(dt, measure):
 return ashour(truncate_second(dt, (measure * 3600)))

def truncate_hour ( dt , measure ) : return ashour ( truncate_second ( dt , ( measure * 3600 ) ) )
truncate by hour .