You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,20 @@ Edge cases
19
19
20
20
There were several different potential edge cases and bugs that could've cropped up with this utility. These are mainly the product of:
21
21
22
-
a. The required flexibility of the input value precision (the user can
23
-
supply times of arbitrary precision to the program, and the
24
-
program has to decide how precise the user wants to be
25
-
and allow a range of acceptable values)
26
-
b. The required flexibility of the number of input values (the user
27
-
can supply one time or a range)
28
-
c. The specification that the log encompasses slightly more than
29
-
a 24 hour timepoint. This means that a specified date interval range
30
-
might appear twice in a log file.
22
+
1. The required flexibility of the input value precision (the user can
23
+
supply times of arbitrary precision to the program, and the
24
+
program has to decide how precise the user wants to be
25
+
and allow a range of acceptable values)
26
+
2. The required flexibility of the number of input values (the user
27
+
can supply one time or a range)
28
+
3. The specification that the log encompasses slightly more than
29
+
a 24 hour timepoint. This means that a specified date interval range
30
+
might appear twice in a log file.
31
31
32
32
I've tried to remedy edge cases up front by normalizing all incoming dates
33
33
and immediately turning them into intervals. Any precise values simply turn into one boundary for the time interval we're looking at, and if we're only looking for one timestamp, I simply make an interval out of two identical date values.
34
34
35
-
To combat c., I simply decided that the first range within the valid bounds of the log file would be the target range.
35
+
To combat (3), I simply decided that the first range within the valid bounds of the log file would be the target range.
0 commit comments