def normal_time(time: str, lessthen24: bool = False) -> str:
    """Normalizes time from ZTM-file format (H.MM / HH.MM) to GTFS format (HH:MM:SS).
    lessthen24 argument ensures hour will be less then 24.
    """
    h, m = map(int, time.split("."))
    if lessthen24:
        while h >= 24:
            h -= 24
    return f"{h:0>2}:{m:0>2}:00"