1.0.7 • Published 7 months ago

our-dates v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Our Dates

A date utility library for simple use cases, zero dependency and lightweight.

License: MIT Current version Weekly downloads install size sponsor this project

our-dates was created for some use cases and solve problems with fast and easy. Working with dates in programming and in severals situations are boring and confusing. With this library this task is more easy. You can handle dates, calculate differences between dates, convert dates, and more. In addition to being able to use some utility methods.

Read the documentation: Documentation

Installation

our-dates can be installed with yarn or npm

# with yarn
yarn add our-dates
# with npm
npm install our-dates

Usage

import { differenceInHours } from 'our-dates';

const laterDate = new Date(2023, 4, 2, 15, 40);
const earlierDate = new Date(2023, 4, 2, 12, 40);
differenceInHours(laterDate, earlierDate) //3 hours

Documentation

Read the documentation: Documentation

Contact

1.0.7

7 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago