# timebelt

> Timezone aware date formatting

Latest version **2.0.1** (published 2016-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install timebelt
pnpm add timebelt
yarn add timebelt
bun add timebelt
```

## 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 | 2.0.1 |
| Published | 2016-03-17 |
| First published | 2016-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | derekcaneja, jperl |

## Links

- npm: https://www.npmjs.com/package/timebelt
- Repository: https://github.com/DispatchMe/timebelt
- Homepage: https://github.com/DispatchMe/timebelt#readme
- Issues: https://github.com/DispatchMe/timebelt/issues
- npm.io page: https://npm.io/package/timebelt

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ^2.11.1
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.0

## Recent versions

- 2.0.1 (latest) — 2016-03-17
- 2.0.0 — 2016-01-22
- 0.0.1 — 2016-01-19

## README

timebelt [![Build Status](https://travis-ci.org/DispatchMe/timebelt.svg?branch=master)](https://travis-ci.org/DispatchMe/timebelt)
=============

Timezone aware date formatting.

##Usage

```
import {dayRange, format, setUserTimezone} from 'timebelt';

// Set the user's timezone
setUserTimezone('America/New_York');

// Jan 1 2016 12:00 AM - 11:59 PM EST
const range = dayRange(new Date('2016-01-01T18:00:00.000Z'));

// In San Francisco it will print 12:00am - 11:59pm EST
// In New York it will print 12:00am - 11:59pm
console.log(format([range.start, range.end], 'h:mma'));
```

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