Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 538 Bytes
title signature
npm install moment-business

This is a Moment.js library that allows Moment operations for Western work weeks: 7 day weeks where Saturday and Sunday are non-work days.

For example,

import business from 'moment-business';

// true if the moment is Mon-Fri, false otherwise

// Adds five work days to the Moment
business.addWeekDays(someMoment, 5);

The repository is located at