Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opening-hours
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
regionalkauf
opening-hours
Commits
ff194ce6
Commit
ff194ce6
authored
Jun 24, 2014
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified test
parent
a3d232ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
test.js
test.js
+4
-1
No files found.
test.js
View file @
ff194ce6
...
@@ -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
()
+
6
0
*
24
*
3600000
);
var
_epochEnd
=
new
Date
(
_epochStart
.
getTime
()
+
2
0
*
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment