We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8103ed5 commit a6c8d22Copy full SHA for a6c8d22
gix-date/tests/time/baseline.rs
@@ -14,7 +14,10 @@ struct Sample {
14
seconds: SecondsSinceUnixEpoch,
15
}
16
17
-/// Returns true if the pattern looks like a relative date (e.g., "1 day ago").
+/// Returns true if the pattern looks like a relative date of the form "N unit ago".
18
+/// Note: This only covers the relative dates tested in the baseline (e.g., "1 day ago").
19
+/// Other relative formats like "yesterday", "last week" etc. are not included in baseline
20
+/// testing because they would require additional handling in the baseline script.
21
fn is_relative_date(pattern: &str) -> bool {
22
pattern.ends_with(" ago")
23
0 commit comments