# @hoolymama/date-util

> utilities for working with dates

Latest version **0.0.6** (published 2016-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hoolymama/date-util
pnpm add @hoolymama/date-util
yarn add @hoolymama/date-util
bun add @hoolymama/date-util
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2016-11-27 |
| First published | 2016-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Julian Mann |
| Maintainers | hoolymama |
| Keywords | gis, geo |

## Links

- npm: https://www.npmjs.com/package/@hoolymama/date-util
- Repository: https://gitlab.com/Hoolymama/date-util
- Homepage: https://gitlab.com/Hoolymama/date-util#README
- Issues: https://gitlab.com/Hoolymama/date-util/issues
- npm.io page: https://npm.io/package/@hoolymama/date-util

## Recent versions

- 0.0.6 (latest) — 2016-11-27
- 0.0.5 — 2016-11-03
- 0.0.4 — 2016-11-03
- 0.0.3 — 2016-11-02
- 0.0.2 — 2016-11-02
- 0.0.1 — 2016-10-30

## README

Date Utilities
=========

Conveniences to work with dates

## Installation

  `npm install @hoolymama/date-util`

## Usage

    var DateUtil = require("date-util")
    DateUtil.dateMinutesAgo(mins)
    DateUtil.inMinutes(mins)
    DateUtil.dateHoursAgo(hrs)
    DateUtil.inHours(hrs)
    DateUtil.randomDateBetween(date1,date2)
    DateUtil.datesAreSince(cutOffDate, ...dates)
    DateUtil.dateIsWithinTheLastMinutes(date, cutOffMinutes)
    DateUtil.dateIsWithinTheLastHours(date, cutOffHours)
    DateUtil.ageInMinutes(date)
    DateUtil.roughAge(date)
    DateUtil.roughAge(minutes)
    
## Tests

  `npm test`

## Contributing

You are sure to have better code style than me, so go for it.

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