+struct time_criterion {
+ char *label;
+ int day_criterion;
+ int start_hour, end_hour;
+ int past_week_day;
+};
+
+/*********************************************************************/
+
+static struct time_criterion time_criteria[] = {
+
+ { "1h", 0, 1, -1, -1 },
+ { "8h", 0, 8, -1, -1 },
+ { "24h", 0, 24, -1, -1 },
+ { "48h", 0, 48, -1, -1 },
+ { "week", 0, 24 * 7, -1, -1 },
+ { "2weeks", 0, 24 * 14, -1, -1 },
+ { "month", 0, 24 * 31, -1, -1 },
+ { "trimester", 0, 24 * 92, -1, -1 },
+ { "year", 0, 24 * 365, -1, -1 },
+
+ { "yesterday", 1, -1, -1, -1 },
+ { "today", 1, -1, -1, 0 },
+
+ { "monday", 1, -1, -1, 1 },
+ { "tuesday", 1, -1, -1, 2 },
+ { "wednesday", 1, -1, -1, 3 },
+ { "thursday", 1, -1, -1, 4 },
+ { "friday", 1, -1, -1, 5 },
+ { "saturday", 1, -1, -1, 6 },
+ { "sunday", 1, -1, -1, 7 },
+
+};
+