noinfopath-bson-timestamp

Makes BSON Timestamps usable.


License
MIT
Install
npm install noinfopath-bson-timestamp@2.1.0

Documentation

NoInfoPath BSON Timestamp

NPM

NPM

This module provide two useful functions for converting a BSON Timestamp object to a Unix Epoc timestamp, and back again.

Install

    npm install noinfopath-bson-timestamp --save

Usage

    var unixTimestamp = NoBSONTimestamp.toNumber(timestamp),
	    bsonTimestamp = NoBSONTimestamp.fromNumber(tsn);

Dependecies

This module requires the following dependencies:

    npm install mongodb --save