emarsys-test
v0.0.4
Published
Emarsys test application
Readme
emarsys-test
Emarsys test sample application
Install
npm install [--save] emarsys-testUse
var emarsys = require('emarsys-test');
emarsys.CalculateDueDate('2017-04-17 15:19',1);Methods
emarsys#CalculateDueDate
Returns: Datetime
On workdays (Monday to Friday) it adds business hours in the working hours (9:00 AM to 5 PM).
Example:
emarsys.CalculateDueDate('2017-04-17 15:19',1);
// '2017-04-17 16:19'
emarsys.CalculateDueDate('2017-04-17 15:19',2);
// '2017-04-18 09:19'Running tests
npm test