[DOCS] Lowest date_range granularity is day (#451)

This commit is contained in:
Jesse Bannon 2023-02-20 10:40:28 -08:00 committed by GitHub
parent 73094e79bb
commit 17e5ca3904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,8 @@ class StringDatetimeValidator(OverridesStringFormatterValidator):
(now|today|yesterday|date)[+-][0-9](microsecond|second|minute|hour|day|week|month|year)(s)
Valid examples are ``now-2weeks`` or ``20200101``. Can use override variables in this.
Note that yt-dlp will round times to the closest day, meaning that `day` is the lowest
granularity possible.
"""
_expected_value_type_name = "datetime string"