How to add duration in milliseconds using awk in bash
00:15 31 Aug 2026

I want to add duration to the time using awk

Here is the test code and the expected result:

test_time() {
    local start_time="01:02:03.123"
    local duration_time="00:03:04.456"

    # stop_time = start_time + duration_time

    local stop_time="01:05:07.579"

    echo "stop_time is: $stop_time"
}

How to calculate the stop_time in awk?

bash awk