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

0.3.0 • 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

Dependents (1)

Package Sidebar

Install

npm i year-helper

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

7.67 kB

Total Files

5

Last publish

Collaborators

  • magiclen