-
Notifications
You must be signed in to change notification settings - Fork 0
/
scheduleTimer.js
70 lines (70 loc) · 1.62 KB
/
scheduleTimer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
function scheduleTimer({
providerRes,
parserRes
} = {}) {
return {
totalWeek: 20,
startWithSunday: false,
showWeekend: false,
forenoon: 4,
afternoon: 4,
night: 3,
sections: [
{
section: 1,
startTime: '08:00',
endTime: '08:50',
},
{
section: 2,
startTime: '09:00',
endTime: '09:50',
},
{
section: 3,
startTime: '10:10',
endTime: '11:00',
},
{
section: 4,
startTime: '11:10',
endTime: '12:00',
},
{
section: 5,
startTime: '14:00',
endTime: '14:50',
},
{
section: 6,
startTime: '15:00',
endTime: '15:50',
},
{
section: 7,
startTime: '16:10',
endTime: '17:00',
},
{
section: 8,
startTime: '17:10',
endTime: '18:00',
},
{
section: 9,
startTime: '18:30',
endTime: '19:20',
},
{
section: 10,
startTime: '19:30',
endTime: '20:20',
},
{
section: 11,
startTime: '20:40',
endTime: '21:30',
}
]
}
}