UNPKG

emarsys-test

Version:

Emarsys test application

38 lines (26 loc) 575 B
# emarsys-test Emarsys test sample application ## Install ``` npm install [--save] emarsys-test ``` ## Use ``` 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: ```javascript 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 ```