-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathRemindersGeneric.cpp
72 lines (64 loc) · 3.51 KB
/
RemindersGeneric.cpp
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
struct reminder1 Reminder1[MAX_REMINDERS1]=
{
// Reminder1[0]:
{
0, 0, 0, 1, 1, 2010, 1, 1, 0, // StartPeriod [Hours, Minutes, Seconds, DayOfMonth, Month, Year, DayOfWeek, DayOfYear, SummerTimeFlag]
0ll, // StartPeriodEpoch
23, 59, 59, 31, 12, 2040, 1, 365, 0, // EndPeriod
0ll, // EndPeriodEpoch
16, 07, 45, 26, 03, 2023, 1, 0, 0, // FirstRing
0ll, // FirstRingEpoch
4 * 60 * 60, // RingDuration - intermittently ring for 4 hours
15 * 60, // RingRepeatTime - ring every 15 minutes.
2 * 7 * 24 * 60 * 60, // NextReminderDelay - next reminder in 2 weeks.
},
// Reminder1[1]:
{
// 0, 0, 0, 1, 1, 9999, 1, 1, 0, // StartPeriod
// 0ll, // StartPeriodEpoch
// 23, 59, 59, 31, 12, 9999, 1, 365, 0, // EndPeriod
// 0ll, // EndPeriodEpoch
// 16, 07, 45, 26, 03, 9999, 1, 0, 0, // FirstRing
// 0ll; // FirstRingEpoch
// 4 * 60 * 60; // RingDuration - intermittently ring for 4 hours
// 15 * 60; // RingRepeatTime - ring every 15 minutes.
// 2 * 7 * 24 * 60 * 60; // NextReminderDelay - next reminder in 2 weeks.
},
// Reminder1[2]:
{
// 0, 0, 0, 1, 1, 9999, 1, 1, 0, // StartPeriod
// 0ll, // StartPeriodEpoch
// 23, 59, 59, 31, 12, 9999, 1, 365, 0, // EndPeriod
// 0ll, // EndPeriodEpoch
// 16, 07, 45, 26, 03, 9999, 1, 0, 0, // FirstRing
// 0ll; // FirstRingEpoch
// 4 * 60 * 60; // RingDuration - intermittently ring for 4 hours
// 15 * 60; // RingRepeatTime - ring every 15 minutes.
// 2 * 7 * 24 * 60 * 60; // NextReminderDelay - next reminder in 2 weeks.
},
// Reminder1[3]:
{
// 0, 0, 0, 1, 1, 9999, 1, 1, 0, // StartPeriod
// 0ll, // StartPeriodEpoch
// 23, 59, 59, 31, 12, 9999, 1, 365, 0, // EndPeriod
// 0ll, // EndPeriodEpoch
// 16, 07, 45, 26, 03, 9999, 1, 0, 0, // FirstRing
// 0ll; // FirstRingEpoch
// 4 * 60 * 60; // RingDuration - intermittently ring for 4 hours
// 15 * 60; // RingRepeatTime - ring every 15 minutes.
// 2 * 7 * 24 * 60 * 60; // NextReminderDelay - next reminder in 2 weeks.
},
// Reminder1[4]:
{
// 0, 0, 0, 1, 1, 9999, 1, 1, 0, // StartPeriod
// 0ll, // StartPeriodEpoch
// 23, 59, 59, 31, 12, 9999, 1, 365, 0, // EndPeriod
// 0ll, // EndPeriodEpoch
// 16, 07, 45, 26, 03, 9999, 1, 0, 0, // FirstRing
// 0ll; // FirstRingEpoch
// 4 * 60 * 60; // RingDuration - intermittently ring for 4 hours
// 15 * 60; // RingRepeatTime - ring every 15 minutes.
// 2 * 7 * 24 * 60 * 60; // NextReminderDelay - next reminder in 2 weeks.
},
// Add other reminders of type 1 here... up to MAX_REMINDERS1.
};