0.0.5 • Published 8 years ago

immudate v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

immudate

Immutable date operations.

npm install immudate

Usage

See tests and source code for full API spec. Some examples:

var d = require('immudate');

var today = d.now();
var tomorrow = today.plusHours(24); //today is not changed
var somewhereInThePast = d.past();
var somewhereInTheFuture = d.future();

Do not forget to get date property when using Immudate object as Date object:

entity.created_at = immudate.now().date;
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago