ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Stephen Jennings ff9e739798 revset: create DatePattern type
Creates a DatePattern type that can be created by parsing a string in any
format supported by the chrono-english crate, including:

- 2024-03-25
- 2024-03-25T00:00:00
- 2024-03-25T00:00:00-08:00
- 2 weeks ago
- 5 minutes ago
- yesterday
- yesterday 5pm
- yesterday 10:30
- yesterday 15:30
- tomorrow

A `kind` can be specified to indicate whether the pattern should match dates at
or after (`after`) or strictly before (`before`) the given instant.

chrono-english supports US and UK dialects to disambiguate mm/dd/yy from
dd/mm/yy, but for now we default to US. This should probably be a config
setting.
2024-08-01 09:04:07 -07:00
..
benches
gen-protos
proc-macros cargo: explicitly indicate paths to publish 2024-04-15 20:37:00 -07:00
src revset: create DatePattern type 2024-08-01 09:04:07 -07:00
tests tests: make helpers create non-legacy trees 2024-07-24 14:33:05 +02:00
testutils tests: make helpers create non-legacy trees 2024-07-24 14:33:05 +02:00
Cargo.toml revset: create DatePattern type 2024-08-01 09:04:07 -07:00
LICENSE