0.2.0 • Published 9 years ago

workwork v0.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

workwork

Returns the working days between two dates, for a given liberty jurisdiction after removing holidays and weekends.

Usage

var workwork = require('workwork');

workwork('nz').between('2014-6-1', '2014-6-4'); // returns [ 2014-6-3, 2014-6-4 ], excluding the Sunday & Queens Birthday

workwork('nz').between('2014-6-1', '2014-6-4', { except: [ 'FREQ=YEARLY;BYMONTH=6;BYMONTHDAY=3' ] }); // returns [ 2014-6-4 ], excluding the Sunday & Queens Birthday and the rrule exclusion

Accepts anything moment will accept. Returns Date objects.

Something need doing?

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago