yuankunzhang
84d27e6386
fix: support timezone offsets that exceed 24-hour range
2025-08-24 19:08:48 +08:00
yuankunzhang
ae25053473
refactor: replace chrono with jiff
2025-08-20 11:44:58 +08:00
Sylvestre Ledru
b68c325abd
Merge pull request #162 from cakebaker/set_timezone_for_tests
...
tests: set timezone to `UTC0` in integration tests
2025-08-01 08:25:18 +02:00
yuankunzhang
8bebfab576
fix: time offset can only appear after time or timezone
2025-07-19 13:57:46 +00:00
Daniel Hofstetter
6e6ffc2dff
tests: set timezone to UTC0 in integration tests
2025-07-16 10:13:20 +02:00
yuankunzhang
0b5d3ffdf3
fix: hour must be greater than 0 when meridiem is specified
2025-06-28 16:48:09 +02:00
yuankunzhang
c0ada32ce1
feat: support nanoseconds
2025-06-28 16:30:24 +02:00
Maxim
856a13ddb2
test: Integration tests for date parsing
2025-06-25 05:15:41 +00:00
Sylvestre Ledru
f1f2c47120
Merge pull request #163 from cakebaker/tests_fix_typos
...
tests: fix typos
2025-06-24 14:47:21 +02:00
Daniel Hofstetter
937572d557
tests: add license header to integration tests
2025-06-24 14:43:56 +02:00
Daniel Hofstetter
a7d9d1ab59
tests: fix typos
...
aphabetical -> alphabetical, ommititing -> omitting
2025-06-24 13:55:37 +02:00
Maxim
7260b0ae73
test: Integration tests for date parsing
2025-06-20 09:16:48 +00:00
Maxim
92daee09de
chore: Remove empty source file
2025-06-20 15:31:40 +09:00
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
Sylvestre Ledru
673d5b600e
rename from humantime_to_duration to parse_datetime
2023-06-09 10:16:26 +02:00
Sylvestre Ledru
6ba55a075b
Fix the various warnings
2023-06-03 14:38:30 +02:00
Sylvestre Ledru
b439960eb1
Port the crate to use chrono instead of time
2023-06-03 13:14:00 +02:00
Daniel Hofstetter
1359dc9349
Simplify tests
2023-05-12 09:59:31 +02:00
Sylvestre Ledru
db00d0686f
add a new from_str_at_date(date, string) function ( #2 )
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2023-05-11 17:16:02 +02:00
Sylvestre Ledru
a68f15e034
from_str('Thu Jan 01 12:34:00 2015') should fail
2023-04-24 00:07:34 +02:00
Sylvestre Ledru
306e1e21a9
add a test to check InvalidInput
2023-04-23 22:51:47 +02:00
Sylvestre Ledru
112b7bf86d
improve the coverage
2023-04-23 22:10:56 +02:00
Sylvestre Ledru
1cb9f467c2
add more tests
2023-04-23 20:04:44 +02:00
Sylvestre Ledru
537a72221d
add more tests
2023-04-23 20:02:40 +02:00