Patrick Klitzke
f10749eade
Refactor parse_datetime to only expose parse_datetime function
...
Create new file parse_relative_time.rs with the relative time helper function.
Renames from_str to parse_datetime and parse_relative time.
Adds function parse_datetime_at_date.
2023-08-29 09:03:17 +09:00
Terts Diepraam
a7380508bc
Merge pull request #38 from cakebaker/use_timestamp_opt_instead_of_timestamp
...
Use timestamp_opt() instead of timestamp() in test
2023-08-28 10:06:16 +02:00
Daniel Hofstetter
7f0a909752
Use timestamp_opt() instead of timestamp() in test
2023-08-28 09:34:38 +02:00
Daniel Hofstetter
ff0f99bea5
Merge pull request #35 from uutils/renovate/regex-1.x
...
Update Rust crate regex to 1.9.4
2023-08-27 11:30:45 +02:00
renovate[bot]
dc0d8a3aa0
Update Rust crate regex to 1.9.4
2023-08-26 17:26:24 +00:00
Sylvestre Ledru
b615effc4e
Merge pull request #32 from philolo1/fix/add-unix-timestamp-test
...
Add tests for unix timestamp
2023-08-22 13:25:05 -04:00
Patrick Klitzke
cebf55cf82
Add a unix timestamp
...
This pr adds tests to support the @ unix timestamp.
2023-08-21 19:40:43 +09:00
Sylvestre Ledru
efee20bf01
Merge pull request #29 from uutils/renovate/regex-1.x
...
Update Rust crate regex to 1.9.3
2023-08-21 07:10:25 +02:00
Sylvestre Ledru
c084001056
Merge pull request #31 from Benjscho/main
...
Add test for parsing epoch seconds
2023-08-21 07:10:15 +02:00
Ben Schofield
a35530ed4a
Add test for parsing epoch seconds
...
Add test to verify epoch seconds can be parsed by `parse_datetime`.
2023-08-20 18:41:39 -07:00
renovate[bot]
6cfcc985a8
Update Rust crate regex to 1.9.3
2023-08-06 00:15:26 +00:00
Sylvestre Ledru
497bebb9e7
Merge pull request #27 from uutils/renovate/regex-1.x
...
Update Rust crate regex to v1.9.1
2023-07-08 14:21:03 +02:00
renovate[bot]
dfd43a6d65
Update Rust crate regex to v1.9.1
2023-07-07 20:20:30 +00:00
Sylvestre Ledru
51dd843ded
Merge pull request #26 from undali/f19
...
add 'next' and 'last' support
2023-07-02 22:10:16 +02:00
undali
c24d593821
add 'next' and 'last' support
2023-06-26 16:00:57 +04:00
Sylvestre Ledru
bed2d16e67
Release version 0.4.0
v0.4.0
2023-06-09 13:43:54 +02:00
Sylvestre Ledru
7ab1ad2f0e
document the old name
2023-06-09 13:43:04 +02:00
Sylvestre Ledru
c1a2bef4a6
Merge pull request #22 from sylvestre/rename
...
rename from humantime_to_duration to parse_datetime
2023-06-09 13:41:17 +02:00
Sylvestre Ledru
673d5b600e
rename from humantime_to_duration to parse_datetime
2023-06-09 10:16:26 +02:00
Sylvestre Ledru
83e1431db0
Merge pull request #21 from sylvestre/fuzz
...
Also fuzz fuzz_parse_datetime_from_str for a minute
2023-06-08 11:27:07 +02:00
Sylvestre Ledru
80f8fdf883
README: syntax highlighting
2023-06-07 15:01:25 +02:00
Sylvestre Ledru
22bdd8f49c
run the fuzzers in the CI
2023-06-07 13:52:00 +02:00
Sylvestre Ledru
dc508c469b
add a fuzzer for parse_datetime_from_str
2023-06-07 13:51:40 +02:00
Sylvestre Ledru
e503de7559
Merge pull request #12 from Benjscho/main
...
add datetime parser
2023-06-07 10:03:17 +02:00
Ben Schofield
7ee33d1fb1
cargo fmt
2023-06-06 10:26:05 -07:00