Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-time-format
Time format for next.
https://github.com/afeiship/next-time-format
date format hour left minute next second time
Last synced: 17 days ago
JSON representation
Time format for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-time-format
- Owner: afeiship
- License: mit
- Created: 2019-05-08T01:51:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T01:14:43.000Z (over 1 year ago)
- Last Synced: 2024-10-06T22:25:03.254Z (about 1 month ago)
- Topics: date, format, hour, left, minute, next, second, time
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-time-format
> Time format for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-time-format
```## usage
```js
import '@jswork/next-time-format';// micro
nx.timeFormat(354*1000);
// { hour: 0, minute: 5, second: 54, datetime:'00:05:54' }nx.timeFormat(4066);
/*
{
hour: 0,
minute: 0,
second: 4,
millisecond: 66,
datetime: '00:00:04'
}
*/
```## license
Code released under [the MIT license](https://github.com/afeiship/next-time-format/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-time-format
[version-url]: https://npmjs.org/package/@jswork/next-time-format[license-image]: https://img.shields.io/npm/l/@jswork/next-time-format
[license-url]: https://github.com/afeiship/next-time-format/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-time-format
[size-url]: https://github.com/afeiship/next-time-format/blob/master/dist/next-time-format.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-time-format
[download-url]: https://www.npmjs.com/package/@jswork/next-time-format