From c34a10ed40a946e788538277150619ec71fc5991 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:57:43 -0800 Subject: [PATCH] Mention that 'XX' can be used in date format This is worth calling out because it would be reasonable for a user to assume that Augur's support XX is automatically applied to dates like %Y-%m-%d. The added explicit mention + existing list of builtin formats including XX explicitly should help avoid that assumption. Co-authored-by: Thomas Sibley --- augur/curate/format_dates.py | 1 + 1 file changed, 1 insertion(+) diff --git a/augur/curate/format_dates.py b/augur/curate/format_dates.py index bd64f7552..711106525 100644 --- a/augur/curate/format_dates.py +++ b/augur/curate/format_dates.py @@ -42,6 +42,7 @@ def register_parser(parent_subparsers): format codes available at . If a value matches multiple formats, it will be parsed using the first match. + Use 'XX' to match masked parts of the date (e.g. '%%m/XX/%%Y'). The following formats are builtin and automatically used: {", ".join(repr(x).replace("%", "%%") for x in BUILTIN_DATE_FORMATS)}. User-provided values are considered after the builtin formats."""))