# ts-military-to-standard-time

> A small package that can help assist with converting a military time string to civilian time.

Latest version **1.0.2** (published 2020-05-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install ts-military-to-standard-time
pnpm add ts-military-to-standard-time
yarn add ts-military-to-standard-time
bun add ts-military-to-standard-time
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-05-14 |
| First published | 2020-03-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Connor Dean |
| Maintainers | connor.dean |
| Keywords | Military, Standard, Hours, Conversion |

## Links

- npm: https://www.npmjs.com/package/ts-military-to-standard-time
- Repository: https://github.com/connor-dean/ts-military-to-standard-time
- Homepage: https://github.com/connor-dean/ts-military-to-standard-time#readme
- Issues: https://github.com/connor-dean/ts-military-to-standard-time/issues
- npm.io page: https://npm.io/package/ts-military-to-standard-time

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-05-14
- 1.0.1 — 2020-03-27
- 1.0.0 — 2020-03-26

## README

# ts-military-to-standard-time

This is a small package that can help assist with converting a military time string to civilian time.

<h3>Usage:</h3>

```typescript
import convertMilitaryToStandardTime from 'ts-military-to-standard-time';

const standardTime = convertMilitaryToStandardTime('1159'); // returns 11:59 AM
const standardTime = convertMilitaryToStandardTime('1200'); // returns 12:00 PM
const standardTime = convertMilitaryToStandardTime('2400'); // returns 12:00 AM
const standardTime = convertMilitaryToStandardTime('1330'); // returns 1:30 PM
```

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