# @bizhermit/time

> time object

Latest version **2.0.0** (published 2022-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bizhermit/time
pnpm add @bizhermit/time
yarn add @bizhermit/time
bun add @bizhermit/time
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-11-21 |
| First published | 2022-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Senda Ryoichi |
| Maintainers | bizhermit |
| Keywords | bizhermit, time |

## Links

- npm: https://www.npmjs.com/package/@bizhermit/time
- Repository: https://github.com/bizhermit/js-time
- Homepage: https://bizhermit.com
- Issues: https://github.com/bizhermit/js-time/issues
- npm.io page: https://npm.io/package/@bizhermit/time

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

- 2.0.0 (latest) — 2022-11-21
- 2.0.0-rc.0 — 2022-07-30
- 1.0.2 — 2022-02-27
- 1.0.1 — 2022-02-25
- 1.0.0 — 2022-02-23

## README

# Time

time object.

## Module

Install
```bash
npm i @bizhermit/time
```

### Example

```ts
import Time, { TimeUtils } from "@bizhermit/time";

const time = new Time();

const average = TimeUtils.average(
    new Time("4:31"),
    new Time("02:03:04"),
    new Time("36:12:40.423"),
    new Time(time),
    new Time(new Date()),
);

console.log(average.format("hh:mm:ss.SSS"));
```

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