0.0.4 • Published 6 years ago

emarsys-test v0.0.4

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

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:

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