postgres-interval-class
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

postgres-interval-class

Manipulations with Postgres interval columns

Installation

Install this package in your project:

$ npm install --save postgres-interval-class

Adding to your project

In Node.js

Call require to get the instance:

const { PostgresColumnInterval } = require('postgres-interval-class');

Or in ES6 and TS:

import PostgresColumnInterval from 'postgres-interval-class';

Usage

const pi = new PostgresColumnInterval('00:15:00');

pi.add(new PostgresColumnInterval('00:05:00'));

pi.add(new Date('2014-03-09T01:59:00'));

pi.sub(new PostgresColumnInterval('00:05:00'));

pi.sub(new Date('2014-03-09T01:59:00'));

pi.toString();
pi.toJSON();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    501
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    501

Package Sidebar

Install

npm i postgres-interval-class

Weekly Downloads

367

Version

0.0.1

License

MIT

Unpacked Size

12.4 kB

Total Files

6

Last publish

Collaborators

  • reiserford