-
Notifications
You must be signed in to change notification settings - Fork 20
Comparing changes
Open a pull request
base repository: uutils/parse_datetime
base: v0.7.0
head repository: uutils/parse_datetime
compare: v0.8.0
Commits on Jan 18, 2025
-
Parse datetimes with single digit timezone offset
Parse full datetimes with single digit timezone offsets like +3 or -5.
Configuration menu - View commit details
-
Copy full SHA for ea49dc9 - Browse repository at this point
Copy the full SHA ea49dc9View commit details
Commits on Jan 19, 2025
-
Merge pull request #102 from jfinkels/parse-datetime-with-single-digi…
…t-offset Parse datetimes with single digit timezone offset
Configuration menu - View commit details
-
Copy full SHA for a7061bc - Browse repository at this point
Copy the full SHA a7061bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cd22af - Browse repository at this point
Copy the full SHA 9cd22afView commit details -
Merge pull request #105 from sylvestre/0.7.0
prepare new release 0.7.0
Configuration menu - View commit details
-
Copy full SHA for b209341 - Browse repository at this point
Copy the full SHA b209341View commit details -
Parse datetime with T separator and digit offset
Parse a datetime with T separator between date and time, single digit timezone offset, and no space between time and offset.
Configuration menu - View commit details
-
Copy full SHA for c948274 - Browse repository at this point
Copy the full SHA c948274View commit details -
Merge pull request #103 from jfinkels/parse-datetime-with-single-digi…
…t-offset-t-sep Parse datetime with T separator and single digit offset
Configuration menu - View commit details
-
Copy full SHA for eda2422 - Browse repository at this point
Copy the full SHA eda2422View commit details
Commits on Jan 27, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 94d4112 - Browse repository at this point
Copy the full SHA 94d4112View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fe83ca - Browse repository at this point
Copy the full SHA 2fe83caView commit details -
Merge pull request #107 from cakebaker/bump_nom
Bump `nom` & adapt to API changes
Configuration menu - View commit details
-
Copy full SHA for 57fe123 - Browse repository at this point
Copy the full SHA 57fe123View commit details
Commits on Jan 28, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 0318dab - Browse repository at this point
Copy the full SHA 0318dabView commit details
Commits on Jan 29, 2025
-
Merge pull request #109 from uutils/renovate/libfuzzer-sys-0.x-lockfile
fix(deps): update rust crate libfuzzer-sys to v0.4.9
Configuration menu - View commit details
-
Copy full SHA for 073b9f7 - Browse repository at this point
Copy the full SHA 073b9f7View commit details
Commits on Feb 8, 2025
-
Make tests of adding months more resilient
Protect against a situation where adding one month to the current day would cause an overflow in the next month in some unit tests of `parse_relative_time`. For example, adding one month to March 31 should overflow to May 1 because April only has 30 days. This is a difference in the behavior we want for our library compared with the behavior of `chrono`.
Configuration menu - View commit details
-
Copy full SHA for 8dd8051 - Browse repository at this point
Copy the full SHA 8dd8051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c0c9c4 - Browse repository at this point
Copy the full SHA 5c0c9c4View commit details -
Merge pull request #112 from jfinkels/fix-add-months-tests
Make tests of adding months more resilient
Configuration menu - View commit details
-
Copy full SHA for 7985aa0 - Browse repository at this point
Copy the full SHA 7985aa0View commit details -
Merge pull request #113 from jfinkels/set-utc-tz-in-test
Explicitly set timezone UTC0 in a unit test
Configuration menu - View commit details
-
Copy full SHA for 51ddcb7 - Browse repository at this point
Copy the full SHA 51ddcb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0965130 - Browse repository at this point
Copy the full SHA 0965130View commit details -
Allow empty string in parse_relative_time_at_date
Allow the empty string when parsing the relative time in `parse_relative_time_at_date()`. The empty string represents zero time delta.
Configuration menu - View commit details
-
Copy full SHA for 45b9d9f - Browse repository at this point
Copy the full SHA 45b9d9fView commit details
Commits on Feb 9, 2025
-
Merge pull request #114 from jfinkels/parse-empty-string
Allow empty string in parse_relative_time_at_date
Configuration menu - View commit details
-
Copy full SHA for d0dceb6 - Browse repository at this point
Copy the full SHA d0dceb6View commit details -
Add passing test for parsing datetime ending in Z
Add a passing unit test for parsing a datetime ending in the letter Z, as in 2023-06-03 12:00:01Z This is treated as a datetime in the UTC time zone.
Configuration menu - View commit details
-
Copy full SHA for f8adcb6 - Browse repository at this point
Copy the full SHA f8adcb6View commit details -
Greedy parsing of datetime before time delta
Simulate greedy parsing of an absolute datetime in the prefix of a string before parsing a subsequent time delta in the suffix of the string. This does not change the behavior of `parse_datetime`, it just prepares the code for a future change that allows parsing both the absolute datetime and the time delta from the same string. Greedy parsing is implemented by iterating over a list of patterns in decreasing order of length so that longer patterns are tried before shorter patterns. This guarantees that if there is an absolute datetime present at the beginning of the string, then it will definitely be parsed and the remaining part of the string is assumed to contain a time delta.
Configuration menu - View commit details
-
Copy full SHA for badc887 - Browse repository at this point
Copy the full SHA badc887View commit details
Commits on Feb 12, 2025
-
Avoid unnecessary slicing when parsing offset
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Configuration menu - View commit details
-
Copy full SHA for 2c55db2 - Browse repository at this point
Copy the full SHA 2c55db2View commit details -
Merge pull request #115 from jfinkels/patterns-with-length
Greedy parsing of datetime before time delta
Configuration menu - View commit details
-
Copy full SHA for 65c88f3 - Browse repository at this point
Copy the full SHA 65c88f3View commit details
Commits on Feb 13, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 65cd15d - Browse repository at this point
Copy the full SHA 65cd15dView commit details -
Add more unit tests for `parse_datetime()` when given an input without a time delta (like "+1 year" or similar).
Configuration menu - View commit details
-
Copy full SHA for 3fcbac6 - Browse repository at this point
Copy the full SHA 3fcbac6View commit details -
Merge pull request #118 from jfinkels/add-more-tests
Add a lot more unit tests
Configuration menu - View commit details
-
Copy full SHA for 1daaeb4 - Browse repository at this point
Copy the full SHA 1daaeb4View commit details -
Merge pull request #111 from cakebaker/fuzz_remove_rand_dependency
fuzz: remove `rand` dependency
Configuration menu - View commit details
-
Copy full SHA for 63cfc01 - Browse repository at this point
Copy the full SHA 63cfc01View commit details -
Merge pull request #116 from jfinkels/remove-add-zero-months
Remove more useless calls to add zero months to date
Configuration menu - View commit details
-
Copy full SHA for c337aba - Browse repository at this point
Copy the full SHA c337abaView commit details -
Add time to parsed date after parsing not before
Change the way dates without times are parsed by just parsing the date as-is and applying the placeholder time (00:00:00) after parsing instead of before.
Configuration menu - View commit details
-
Copy full SHA for db18db4 - Browse repository at this point
Copy the full SHA db18db4View commit details
Commits on Feb 14, 2025
-
Merge pull request #117 from jfinkels/add-time-to-date-after-parsing
Add time to parsed date after parsing not before
Configuration menu - View commit details
-
Copy full SHA for ca6a39c - Browse repository at this point
Copy the full SHA ca6a39cView commit details
Commits on Feb 15, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f1fada6 - Browse repository at this point
Copy the full SHA f1fada6View commit details -
Parse reference date and delta from same string
Change the `parse_datetime()` function so that it parses both a reference date and a time delta from one string. The new implementation attempts to parse the datetime from the longest possible prefix of the string. The remainder of the string is parsed as the time delta. This allows us to parse more combinations of reference dates and time deltas more easily. Fixes #104
Configuration menu - View commit details
-
Copy full SHA for 8aee979 - Browse repository at this point
Copy the full SHA 8aee979View commit details
Commits on Feb 16, 2025
-
Use str.ends_with for patterns ending in Z
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Configuration menu - View commit details
-
Copy full SHA for d4353d0 - Browse repository at this point
Copy the full SHA d4353d0View commit details -
Merge pull request #110 from jfinkels/parse-ref-date-and-delta
Parse reference datetime and timedelta from the same string
Configuration menu - View commit details
-
Copy full SHA for e7a7a0b - Browse repository at this point
Copy the full SHA e7a7a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93e1c9b - Browse repository at this point
Copy the full SHA 93e1c9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46cc414 - Browse repository at this point
Copy the full SHA 46cc414View commit details
Commits on Feb 17, 2025
-
Merge pull request #119 from sylvestre/new-release
Prepare the new relase + clippy
Configuration menu - View commit details
-
Copy full SHA for d4384ce - Browse repository at this point
Copy the full SHA d4384ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52dca03 - Browse repository at this point
Copy the full SHA 52dca03View commit details
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.