Main function to execute the time delta calculation program.
()
| 94 | |
| 95 | |
| 96 | def main() -> None: |
| 97 | """ |
| 98 | Main function to execute the time delta calculation program. |
| 99 | """ |
| 100 | try: |
| 101 | num_test_cases, test_cases = read_test_cases() |
| 102 | |
| 103 | for t1, t2 in test_cases: |
| 104 | result = calculate_time_delta(t1, t2) |
| 105 | print(result) |
| 106 | |
| 107 | except ValueError as e: |
| 108 | print(f"Error: {e}") |
| 109 | except Exception as e: |
| 110 | print(f"Unexpected error: {e}") |
| 111 | |
| 112 | |
| 113 | if __name__ == "__main__": |
no test coverage detected