Skip to content

Instantly share code, notes, and snippets.

View Abdelrhmangad's full-sized avatar
🏠
Working from home

Abdelrhman Gad Abdelrhmangad

🏠
Working from home
View GitHub Profile
@joseluisq
joseluisq / add_two_times.js
Last active February 22, 2023 14:21
Add two string time values (HH:mm:ss) with javascript
/**
* Add two string time values (HH:mm:ss) with javascript
*
* Usage:
* > addTimes('04:20:10', '21:15:10');
* > "25:35:20"
* > addTimes('04:35:10', '21:35:10');
* > "26:10:20"
* > addTimes('30:59', '17:10');
* > "48:09:00"