year-helper
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

year-helper

CI

This package provides some useful functions to deal with dates especially related to leap years.

Usage

import { isLeapYear, getDaysInMonth, getDaysInYear } from "year-helper";

console.log(isLeapYear(2000));        // true
console.log(getDaysInMonth(2000, 2)); // 29
console.log(getDaysInYear(2000));     // 366

Usage for Browsers

Source

Demo Page

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i year-helper

Weekly Downloads

15

Version

0.2.3

License

MIT

Unpacked Size

7.58 kB

Total Files

5

Last publish

Collaborators

  • magiclen