# @types/hh-mm-ss

> TypeScript definitions for hh-mm-ss

Latest version **1.2.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/hh-mm-ss
pnpm add @types/hh-mm-ss
yarn add @types/hh-mm-ss
bun add @types/hh-mm-ss
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2023-11-07 |
| First published | 2020-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hh-mm-ss
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hh-mm-ss
- npm.io page: https://npm.io/package/@types/hh-mm-ss

## Recent versions

- 1.2.3 (latest) — 2023-11-07
- 1.2.1 (ts3.5) — 2021-05-14
- 1.2.0 (ts2.8) — 2020-01-07
- 1.2.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/hh-mm-ss`

# Summary
This package contains type definitions for hh-mm-ss (https://github.com/Goldob/hh-mm-ss#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hh-mm-ss.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hh-mm-ss/index.d.ts)
````ts
/**
 * Convert given `hh:mm:ss` formatted string to miliseconds
 *
 * @param time String representation
 * @param format Default input format. If present, it will be used to resolve
 *  ambiguities during interpretation. If not specified, `mm:ss` is implied.
 *  [See section below for supported format list](https://github.com/Goldob/hh-mm-ss#supported-time-formats)
 */
export function toMs(time: string, format?: string): number;

/**
 * Convert given `hh:mm:ss` formatted string to seconds
 *
 * @param time String representation
 * @param format Default input format. If present, it will be used to resolve
 *  amiguities during interpretation. If not specified, `mm:ss` is implied.
 *  [See section below for supported format list](https://github.com/Goldob/hh-mm-ss#supported-time-formats)
 */
export function toS(time: string, format?: string): number;

/**
 * Generate formatted string from time in miliseconds
 *
 * @param ms Time in miliseconds
 * @param format Default output format. If not specified, `mm:ss` is implied.
 *  [See section below for supported format list](https://github.com/Goldob/hh-mm-ss#supported-time-formats)
 */
export function fromMs(ms: number, format?: string): string;

/**
 * Generate formatted string from time in seconds
 *
 * @param s Time in seconds
 * @param format Default output format. If not specified, `mm:ss` is implied.
 *  [See section below for supported format list](https://github.com/Goldob/hh-mm-ss#supported-time-formats)
 */
export function fromS(s: number, format?: string): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Thomas Cazade](https://github.com/TotomInc).

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