From fe533771d9e9e38ccf69e95c4ef2b9c46226386c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sj=C3=B6blom?= Date: Wed, 12 Feb 2025 00:39:33 +0100 Subject: [PATCH] Updating date parsing instructions after previous syntax was removed --- docs/beancount_query_language.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/beancount_query_language.md b/docs/beancount_query_language.md index c9ca7d5c..918c04a7 100644 --- a/docs/beancount_query_language.md +++ b/docs/beancount_query_language.md @@ -175,7 +175,7 @@ The data attributes extracted from the postings or transactions have particular - String (Python str) -- Date (a datetime.date instance). You can parse a date with the `#"..."` syntax; this uses Python’s dateutil module and is pretty liberal in the formats it accepts. +- Date (a datetime.date instance). Dates are entered in `YYYY-MM-DD` format: `SELECT * WHERE date < 2024-05-01`. - Integer (Python int) @@ -241,7 +241,7 @@ We also provide a regular expression search operator into a string object: At the moment, matching groups are ignored. -You can use string, number and integer constants with those operators, and parentheses to explicitly state precedence. You can use the `#”...”` literal syntax to input dates (valid contents for the string are pretty liberal, it supports anything Python’s dateutil.parser supports). +You can use string, number and integer constants with those operators, and parentheses to explicitly state precedence. Here is an example query that uses a few of these: