Overview:
- Multiplication of a timedelta instance by an integer or a floating point number is supported through the * operator.
Example:
# Example Python program that multiplies halfLapTime = timedelta(minutes = 3) # One full lap is two half laps print("Time required to complete one lap:") print("Time required to complete two and half laps:") |
Output:
Time required to complete one lap: 0:06:00 Time required to complete two and half laps: 0:15:00 |