https://github.com/thebespokepixel/time
A collection of utilities for Time and Space.
https://github.com/thebespokepixel/time
date helper library node-module npm time
Last synced: 3 months ago
JSON representation
A collection of utilities for Time and Space.
- Host: GitHub
- URL: https://github.com/thebespokepixel/time
- Owner: thebespokepixel
- Created: 2016-04-21T07:41:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T17:54:47.000Z (over 2 years ago)
- Last Synced: 2025-02-18T06:50:13.395Z (4 months ago)
- Topics: date, helper, library, node-module, npm, time
- Language: JavaScript
- Homepage:
- Size: 23.1 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# @thebespokepixel/time
> Bespoke Time Collection : A collection of utilities for Time and Space.
##### Publishing Status
[](https://www.npmjs.com/package/@thebespokepixel/time "npm") [](https://libraries.io/github/thebespokepixel/time "Libraries.io")
[](https://travis-ci.com/thebespokepixel/time "Travis") [](https://github.com/rollup/rollup/wiki/pkg.module "Rollup")##### Development Status
[](https://travis-ci.com/thebespokepixel/time "Travis") [](https://libraries.io/github/thebespokepixel/time "Libraries.io")
[](https://snyk.io/test/github/thebespokepixel/time "Snyk") [](https://codeclimate.com/github/thebespokepixel/time/maintainability "Code-Climate") [](https://codeclimate.com/github/thebespokepixel/time/test_coverage "Code-Climate Coverage")##### Documentation/Help
[](https://inch-ci.org/github/thebespokepixel/time "Inch.io") [](https://twitter.com/thebespokepixel "Twitter")
## About
A convenience package for pulling together a bunch of useful time modules into one place.
Currently this includes:
- Moment.js
- Luxon
- node-dateformat## Usage
#### Installation```shell
npm install --save @thebespokepixel/time
```#### Example
```js
import {
bespokeTime,
bespokeTimeFormat,
DateTime,
Interval,
Duration
} from '@thebespokepixel/time'const now = bespokeTime()
console.log(bespokeTimeFormat(now, 'HH:mm:ss'))
```See [Moment Docs](https://momentjs.com) for `bespokeTime`
See [dateformat](https://github.com/felixge/node-dateformat) for `bespokeTimeFormat`
See [Luxon Docs](https://moment.github.io/luxon/) for `DateTime`, `Interval` and `Duration`## Documentation
Full documentation can be found at [https://thebespokepixel.github.io/time/][1][1]: https://thebespokepixel.github.io/time/