# time-passed

> A package to calculate the time passed since another timestamp

Latest version **0.0.5** (published 2020-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install time-passed
pnpm add time-passed
yarn add time-passed
bun add time-passed
```

## 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.5 |
| Published | 2020-11-16 |
| First published | 2020-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Robbie Cook |
| Maintainers | robbie-cook |
| Keywords | time, seconds, recent, relative, time, momentjs, moment |

## Links

- npm: https://www.npmjs.com/package/time-passed
- Repository: https://github.com/Robbie-Cook/time-passed
- Homepage: https://github.com/Robbie-Cook/time-passed#readme
- Issues: https://github.com/Robbie-Cook/time-passed/issues
- npm.io page: https://npm.io/package/time-passed

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2020-11-16
- 0.0.4 — 2020-11-15
- 0.0.3 — 2020-11-13
- 0.0.2 — 2020-11-13
- 0.0.1 — 2020-11-13

## README

# Time Passed
A library that helps you with showing the time passed since some other timestamp.

Helpful for posts and updates and such.

NOTE: uses [millisecond Unix time](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now)

## Demo

https://timepassed.robbie.digital/

## Usage

### Import
```typescript
import Time from "time-passed";
Time.getRelativeTime(Date.now(), 1605236401152);
```

or in ES5

```typescript
const Time = require("time-passed").default;
Time.getRelativeTime(Date.now(), 1605236401152);
```

or in UMD

```html
<script src="https://unpkg.com/time-passed@0.0.3/umd/index.js"></script>
<script>

  const newTime = window.TimePassed.default.getRelativeTime(Date.now(), 1605236401152);
</script>
```

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