# reql-to-moment

> A helper function to convert raw ReQL time object to moment.js preserving time zone information. This is useful for reading raw time objects from RethinkDB.

Latest version **1.1.1** (published 2016-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install reql-to-moment
pnpm add reql-to-moment
yarn add reql-to-moment
bun add reql-to-moment
```

## 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.1.1 |
| Published | 2016-09-24 |
| First published | 2016-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Gorbatchev |
| Maintainers | alexgorbatchev |
| Keywords | moment, reql, rethinkdb |

## Links

- npm: https://www.npmjs.com/package/reql-to-moment
- Repository: https://github.com/alexgorbatchev/reql-to-moment
- Homepage: https://github.com/alexgorbatchev/reql-to-moment#readme
- Issues: https://github.com/alexgorbatchev/reql-to-moment/issues
- npm.io page: https://npm.io/package/reql-to-moment

## Recent versions

- 1.1.1 (latest) — 2016-09-24
- 1.1.0 — 2016-09-11
- 1.0.0 — 2016-07-02

## README

# reql-to-moment

[![GratiPay](https://img.shields.io/gratipay/user/alexgorbatchev.svg)](https://gratipay.com/alexgorbatchev/)
![Downloads](https://img.shields.io/npm/dm/reql-to-moment.svg)
![Version](https://img.shields.io/npm/v/reql-to-moment.svg)

A helper function to convert raw ReQL time object to moment.js preserving time zone information. This is useful for reading raw time objects from RethinkDB.

## Installation

`reql-to-moment` expects that you have already installed `moment`.

```
npm instal --save-dev reql-to-moment
```

## Usage

```js
import reqlToMoment from 'reql-to-moment';

reqlToMoment({
  $reql_type$: 'TIME',
  epoch_time: 1286730000,
  timezone: '-07:00',
});
// returns moment.js object
```

## License

ISC

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