https://github.com/antonmedv/year
All unix epoch dates
https://github.com/antonmedv/year
Last synced: 10 months ago
JSON representation
All unix epoch dates
- Host: GitHub
- URL: https://github.com/antonmedv/year
- Owner: antonmedv
- License: mit
- Created: 2017-07-03T16:51:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T21:29:45.000Z (over 5 years ago)
- Last Synced: 2024-05-02T01:09:22.455Z (over 1 year ago)
- Language: JavaScript
- Size: 3.05 MB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @year
A bunch of npm packages for all [epoch](https://en.wikipedia.org/wiki/Unix_time) dates.
Includes all dates between 1 January 1970 and 19 January 2038.
## Install
~~~
npm install @year/1970
~~~
## Usage
~~~js
const day = require('@year/1970/01/01')
~~~
Returns a [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object.
## License
MIT