Skip to content

Commit

Permalink
Document default for [weekday]
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Oct 16, 2024
1 parent 5ecface commit 888dd09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagrams/diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, name, diagram):
0, '1+', '1', '2', '3', '4', '5', '6', '7', '8', '9'))
weekday_repr = Sequence('repr:', Choice(
0, 'long', 'short', 'sunday', 'monday'))
weekday_one_indexed = Sequence('one_indexed:', Choice(0, 'false', 'true'))
weekday_one_indexed = Sequence('one_indexed:', Choice(0, 'true', 'false'))
week_number_repr = Sequence('repr:', Choice(0, 'iso', 'sunday', 'monday'))
year_repr = Sequence('repr:', Choice(0, 'full', 'last_two'))
year_base = Sequence('base:', Choice(0, 'calendar', 'iso_week'))
Expand Down
2 changes: 1 addition & 1 deletion src/api/format-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ ASCII whitespace characters.
the weekday's full name in English, while the short is the first three letters. There are also
_sunday_ and _monday_ representations, which are numerical. These formats are either zero to six
or one to seven (depending on whether `one_indexed` is false or true, respectively), with the
named day being at the start of that range.
named day being at the start of that range. The default for `one_indexed` is true.

When parsing, there is the option to consume text-based formats case-insensitively.

Expand Down

0 comments on commit 888dd09

Please sign in to comment.