# convert-time-24hr

> convert 24 hours time format to 12 hour and vice versa

Latest version **1.7.3** (published 2021-10-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install convert-time-24hr
pnpm add convert-time-24hr
yarn add convert-time-24hr
bun add convert-time-24hr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.3 |
| Published | 2021-10-23 |
| First published | 2021-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Usama Ahmed |
| Maintainers | usama4745 |
| Keywords | converttime, 24hoursto12hours, 12hourto24hour |

## Links

- npm: https://www.npmjs.com/package/convert-time-24hr
- Repository: https://github.com/Usama4745/convert-time-24hr
- Homepage: https://github.com/Usama4745/convert-time-24hr#readme
- Issues: https://github.com/Usama4745/convert-time-24hr/issues
- npm.io page: https://npm.io/package/convert-time-24hr

## Recent versions

- 1.7.3 (latest) — 2021-10-23
- 1.7.2 — 2021-10-22
- 1.7.1 — 2021-10-22
- 1.7.0 — 2021-10-22
- 1.6.0 — 2021-10-22
- 1.4.5 — 2021-10-22
- 1.3.5 — 2021-10-22
- 1.3.4 — 2021-10-21
- 1.3.3 — 2021-10-21
- 1.3.1 — 2021-10-21
- 1.3.0 — 2021-10-21
- 1.2.0 — 2021-10-20
- 1.1.0 — 2021-10-20
- 1.0.0 — 2021-10-20

## README

# Convert 24h -> 12h
🕒 This is a plugin used to convert time format from 24 hours to 12 hours and vice versa

Contributions are welcome

## How to use

install

```
npm i convert-time-24hr
```

Use

```
const timeFormat=require("convert-time-24hr");
```

```
timeFormat.convertTimeTo24hrs(hours,minutes,seconds,amorpm); // return time in 24 hours format
```

```
timeFormat.convertTimeTo12hrs(hours,minutes,seconds); // return time in 12 hours format
```

run tests

```
npm run test
```

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