0.2.3 • Published 8 years ago

immutable-datetime v0.2.3

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

Simplified, Immutable DateTime with No Timezones

  • Pure UTC
  • Second-level accuracy
  • Chaining
  • Most methods similar to native Date but without mutations

Installation

npm install immutable-datetime

Usage:

import DateTime from 'immutable-datetime';

let date = DateTime.fromDateString('2016-01-02');
date = date.addMonths(1).addDays(6);
console.log(date.toDateString()); // 2016-02-08

License

This software is BSD Licensed.