Skip to content

kodefox/immutable-datetime

Repository files navigation

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.

About

Simplified, Immutable DateTime with No Timezones

Resources

License

Stars

Watchers

Forks

Packages

No packages published