# tz-offset

> Javascript Timezone Offset

Latest version **0.0.2** (published 2019-04-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install tz-offset
pnpm add tz-offset
yarn add tz-offset
bun add tz-offset
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-04-30 |
| First published | 2018-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/tz-offset) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lucas Merencia |
| Maintainers | merencia |
| Keywords | timezone, offset, time, zone |

## Links

- npm: https://www.npmjs.com/package/tz-offset
- Repository: https://github.com/merencia/tz-offset
- Homepage: https://github.com/merencia/tz-offset#readme
- Issues: https://github.com/merencia/tz-offset/issues
- npm.io page: https://npm.io/package/tz-offset

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

- 0.0.2 (latest) — 2019-04-30
- 0.0.1 — 2018-09-06

## README

# tz-offset
![npm](https://img.shields.io/npm/v/tz-offset.svg)
[![npm](https://img.shields.io/npm/l/tz-offset.svg)](https://github.com/node-cron/tz-offset/blob/master/LICENSE.md)
[![Build Status](https://travis-ci.org/node-cron/tz-offset.svg?branch=master)](https://travis-ci.org/node-cron/tz-offset)
[![dependencies Status](https://david-dm.org/node-cron/tz-offset/status.svg)](https://david-dm.org/node-cron/tz-offset)
[![devDependencies Status](https://david-dm.org/node-cron/tz-offset/dev-status.svg)](https://david-dm.org/node-cron/tz-offset?type=dev)

A lib to work with JavaScript timezone offset 

# Usage

```js
var tzOffset = require("tz-offset")
tzOffset.offsetOf("America/Sao_Paulo"); // 180.

tzOffset.removeOffset(new Date()); // a givend date without timezone offset.

tzOffset.timeAt(new Date(), "Europe/London"); // a given date represented in another.
```

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