https://github.com/akbaruddin/duration
hh:mm:ss to milliseconds
https://github.com/akbaruddin/duration
hours milliseconds minutes number seconds string time
Last synced: 4 months ago
JSON representation
hh:mm:ss to milliseconds
- Host: GitHub
- URL: https://github.com/akbaruddin/duration
- Owner: akbaruddin
- License: mit
- Created: 2022-08-20T14:40:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T05:52:54.000Z (about 2 years ago)
- Last Synced: 2025-11-06T08:16:46.732Z (7 months ago)
- Topics: hours, milliseconds, minutes, number, seconds, string, time
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/duration-in-milliseconds
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Duration
Simple JavaScript function to convert string format `hh:mm:ss` to milisecconds
### Example
```javascript
// `hh:mm:ss` to milliseconds
// `00:00:10` => `10000`
const time = duration("00:00:20");
console.log(time); // output 20000
```