Skip to content

joshduck/simple-day

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleDay

A simple library for working with calendar days (YYYY-MM-DD) as plain old JavaScript objects.

Usage

SimpleDay.normalize({ year: 2011, month: 1, day: -1 });    // { year: 2010, month: 12, day: 30 }
SimpleDay.addDays(  { year: 2011, month: 1, day: 1 }, 5); // { year: 2011, month: 1, day: 6 }
SimpleDay.addMonths({ year: 2011, month: 1, day: 1 }, 5); // { year: 2011, month: 6, day: 1 }
SimpleDay.addYears( { year: 2011, month: 1, day: 1 }, 5); // { year: 2016, month: 1, day: 1 }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published