https://github.com/afeiship/next-day-of-year
Javascript calculate the day of the year (1 - 366).
https://github.com/afeiship/next-day-of-year
day next of year
Last synced: 6 months ago
JSON representation
Javascript calculate the day of the year (1 - 366).
- Host: GitHub
- URL: https://github.com/afeiship/next-day-of-year
- Owner: afeiship
- License: mit
- Created: 2020-07-13T00:21:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T10:10:46.000Z (almost 5 years ago)
- Last Synced: 2025-03-09T05:46:36.233Z (7 months ago)
- Topics: day, next, of, year
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-day-of-year
> Javascript calculate the day of the year (1 - 366).[![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-day-of-year
```## usage
```js
import '@jswork/next-day-of-year';const day1 = new Date('2020-01-01');
const day2 = new Date('2020-02-01');nx.dayOfYear(day1); // 1
nx.dayOfYear(day2); // 32
```## resources
- https://stackoverflow.com/questions/8619879/javascript-calculate-the-day-of-the-year-1-366## license
Code released under [the MIT license](https://github.com/afeiship/next-day-of-year/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-day-of-year
[version-url]: https://npmjs.org/package/@jswork/next-day-of-year[license-image]: https://img.shields.io/npm/l/@jswork/next-day-of-year
[license-url]: https://github.com/afeiship/next-day-of-year/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-day-of-year
[size-url]: https://github.com/afeiship/next-day-of-year/blob/master/dist/next-day-of-year.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-day-of-year
[download-url]: https://www.npmjs.com/package/@jswork/next-day-of-year