Commit ff194ce6 authored by Johannes Bill's avatar Johannes Bill

modified test

parent a3d232ce
...@@ -2,7 +2,7 @@ var utils = require('./timeUtils'); ...@@ -2,7 +2,7 @@ var utils = require('./timeUtils');
//gibt zu betrachtenden Zeitraum an. //gibt zu betrachtenden Zeitraum an.
var _epochStart = new Date(2014, 5, 24, 0); var _epochStart = new Date(2014, 5, 24, 0);
var _epochEnd = new Date(_epochStart.getTime() + 60 * 24 * 3600000); var _epochEnd = new Date(_epochStart.getTime() + 20 * 24 * 3600000);
console.log("epochStart", _epochStart); console.log("epochStart", _epochStart);
console.log("epochEnd ", _epochEnd); console.log("epochEnd ", _epochEnd);
...@@ -20,6 +20,9 @@ console.log("epochEnd ", _epochEnd); ...@@ -20,6 +20,9 @@ console.log("epochEnd ", _epochEnd);
var t1 = utils.cyclicFromTillDay(1, 1, 1, {h: 9, m: 0}, {h: 0, m: 0}, _epochStart, _epochEnd); var t1 = utils.cyclicFromTillDay(1, 1, 1, {h: 9, m: 0}, {h: 0, m: 0}, _epochStart, _epochEnd);
var t2 = utils.cyclicFromTillDay(2, 2, 1, {h: 0, m: 0}, {h: 18, m: 29}, _epochStart, _epochEnd); var t2 = utils.cyclicFromTillDay(2, 2, 1, {h: 0, m: 0}, {h: 18, m: 29}, _epochStart, _epochEnd);
t1 = utils.standardFromTillDay(3,3, {h: 21, m: 0}, {h: 0, m: 0}, _epochStart, _epochEnd, 7);
t2 = utils.standardFromTillDay(4,4, {h: 0, m: 0}, {h: 18, m: 0}, _epochStart, _epochEnd, 7);
console.log(t1); console.log(t1);
console.log(t2); console.log(t2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment