Gwendal Roué
|
4415681c92
|
SQLiteDateParser: don't parse garbage into nanoseconds
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
5a0425a23c
|
SQLiteDateParser: optimize nanoseconds parsing
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
8729085528
|
Add a sanity check
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
bf3b4e7e02
|
SQLiteDateParser: parse C strings
Since the goal of this PR is efficiency, we'll soon parse Date and
DatabaseDateComponents right from raw SQLite buffers.
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
ad8b80bafd
|
(whitespace)
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
06476bc6fe
|
SQLiteDateParser.components(from:) is not public
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
0616209e58
|
SQLiteDateParser: no more static methods
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
415f2971e5
|
SQLiteDateParser: use withUnsafeMutablePointer instead of allocations
OK, not really: the nanosecond components remains in the heap.
But we may find a way to put 11 chars on the stack.
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
3a7b2cc4a2
|
SQLiteDateParser: get rid of the mutex
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
63a68978f0
|
truncate nanosecond precision to 3 sig figs
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
36ac5fa53e
|
truncate date/time strings that include seconds precision beyond the nanosecond scale
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
70190e2a23
|
not all nanosecond fractions have 3 sig figs, so can't hard code the acceptable string lengths
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
2682dae34b
|
0.123 is not the same thing as 0.000123
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
3a1e695a39
|
fractions of seconds are not the same thing as integer counts of nanoseconds
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
604f80f6fa
|
differentiate between SS and SS.SSS formats
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
5c0b88eb82
|
return correct Format for partial date/time combinations
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
815424770b
|
initial scanf() based date string parser
|
2018-06-07 08:36:29 +02:00 |
|