Untitled

 avatar
unknown
plain_text
a month ago
214 B
1
Indexable
start=$1
end=$2
start_sec=$(date -d "$start" +%s)
end_sec=$(date -d "$end" +%s)
diff_sec=$((end_sec - start_sec))
printf "%02d:%02d:%02d\n" $((diff_sec / 3600)) $(((diff_sec % 3600) / 60)) $((diff_sec % 60))
Leave a Comment