# hronos

> extended library for date/time operations

Latest version **1.0.1-alpha** (published 2021-11-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install hronos
pnpm add hronos
yarn add hronos
bun add hronos
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1-alpha |
| Published | 2021-11-11 |
| First published | 2021-11-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Serhiy Filonenko |
| Maintainers | serhiy_filonenko |

## Links

- npm: https://www.npmjs.com/package/hronos
- npm.io page: https://npm.io/package/hronos

## Recent versions

- 1.0.1-alpha (latest) — 2021-11-11

## README

Functions:

Definition: nextDay(dateTime: Date | string): string

Description: Returns next day 

Example:

import {nextDay} from 'hronos'

console.log(nextDay('2003-03-04'))

Returns: Wed Mar 05 2003 02:00:00 GMT+0200

---------------------------------

Definition: previousDay(dateTime: Date | string): string

Description: Returns previous day

Example:

import {previousDay} from 'hronos'

console.log(previousDay('2003-03-04'))

Returns: Mon Mar 03 2003 02:00:00 GMT+0200

----------------------------------

Definition: getDifference(dateTimeStart: Date | string, dateTimeEnd: Date | string): string

Description: Returns difference between two dates

Example:

import {getDifference} from 'hronos'

console.log(getDifference('2003-03-04 14:12:42', '2003-04-05 15:12:13'))

Returns: 31d 23h 59m 31s

---
_Source: https://npm.io/package/hronos · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
