# @date-vir/duration

> Durations units an utils for date-vir.

Latest version **9.1.1** (published 2026-08-20) · (MIT OR CC0-1.0) license · 0 weekly downloads

## Install

```sh
npm install @date-vir/duration
pnpm add @date-vir/duration
yarn add @date-vir/duration
bun add @date-vir/duration
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.1.1 |
| Published | 2026-08-20 |
| First published | 2024-08-09 |
| Weekly downloads | 0 |
| License | (MIT OR CC0-1.0) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 4 |
| Unpacked size | 53.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | electrovir |
| Maintainers | electrovir |
| Keywords | duration, date, util, time |

## Links

- npm: https://www.npmjs.com/package/@date-vir/duration
- Repository: https://github.com/electrovir/date-vir
- Issues: https://github.com/electrovir/date-vir/issues
- npm.io page: https://npm.io/package/@date-vir/duration

## Dependencies (4)

- [luxon](https://npm.io/package/luxon.md) ^3.7.2
- [type-fest](https://npm.io/package/type-fest.md) ^5.8.0
- [@types/luxon](https://npm.io/package/@types/luxon.md) ^3.7.3
- [@augment-vir/assert](https://npm.io/package/@augment-vir/assert.md) ^32.2.1

## 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

- 9.1.1 (latest) — 2026-08-20
- 9.1.0 — 2026-08-16
- 9.0.0 — 2026-08-12
- 8.6.4 — 2026-08-12
- 8.6.3 — 2026-08-12
- 8.6.2 — 2026-07-01
- 8.6.1 — 2026-06-18
- 8.6.0 — 2026-06-18
- 8.5.1 — 2026-06-18
- 8.5.0 — 2026-06-09
- 8.4.0 — 2026-06-04
- 8.3.3 — 2026-06-03
- 8.3.2 — 2026-04-20
- 8.3.1 — 2026-04-14
- 8.3.0 — 2026-04-10
- … 23 more at https://npm.io/package/@date-vir/duration/versions

## README

# @date-vir/duration

This is a sub-set of [`date-vir`](https://www.npmjs.com/package/date-vir) functionality that's specifically related to duration types and conversion with minimal dependencies.

In nearly all cases, you should use the full [`date-vir`](https://www.npmjs.com/package/date-vir) dependency directly instead of using this one.

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