An open API service indexing awesome lists of open source software.

https://github.com/bevry/duration-timestamp

Parse and stringify duration timestamps (such as hh:mm:ss and HhMmSs)
https://github.com/bevry/duration-timestamp

Last synced: 9 months ago
JSON representation

Parse and stringify duration timestamps (such as hh:mm:ss and HhMmSs)

Awesome Lists containing this project

README

          

duration-timestamp

Status of the GitHub Workflow: bevry
NPM version
NPM downloads


GitHub Sponsors donate button
ThanksDev donate button
Patreon donate button
Liberapay donate button
Buy Me A Coffee donate button
Open Collective donate button
crypto donate button
PayPal donate button


Discord server badge
Twitch community badge

Parse and stringify duration timestamps (such as hh:mm:ss and HhMmSs)

## Usage

[Complete API Documentation.](http://master.duration-timestamp.bevry.surge.sh/docs/)

### Compatibility

Node.js, Safari, and Google Chrome are supported.

Firefox is not supported, as Firefox must [add support](https://bugzilla.mozilla.org/show_bug.cgi?id=1362154) for [named capture groups](https://github.com/tc39/proposal-regexp-named-groups) for regular expressions.

Install

npm



  • Install: npm install --save duration-timestamp

  • Import: import * as pkg from ('duration-timestamp')

  • Require: const pkg = require('duration-timestamp')

Skypack

``` html

import * as pkg from '//cdn.skypack.dev/duration-timestamp@^2.26.0'

```

unpkg

``` html

import * as pkg from '//unpkg.com/duration-timestamp@^2.26.0'

```

jspm

``` html

import * as pkg from '//dev.jspm.io/duration-timestamp@2.26.0'

```

Editions

This package is published with the following editions:



  • duration-timestamp aliases duration-timestamp/index.cjs which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment


  • duration-timestamp/source/index.ts is TypeScript source code with Import for modules


  • duration-timestamp/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules


  • duration-timestamp/edition-es2022/index.js is TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Require for modules


  • duration-timestamp/edition-es2019/index.js is TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules


  • duration-timestamp/edition-es2019-esm/index.js is TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button
ThanksDev donate button
Patreon donate button
Liberapay donate button
Buy Me A Coffee donate button
Open Collective donate button
crypto donate button
PayPal donate button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under: