8000 Update `timedelta` docs with correct spec (#10879) · pydantic/pydantic@40322e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40322e1

Browse files
committed
Update timedelta docs with correct spec (#10879)
1 parent 4413892 commit 40322e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/standard_library_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ print(m.model_dump())
135135
* `timedelta`; an existing `timedelta` object
136136
* `int` or `float`; assumed to be seconds
137137
* `str`; the following formats are accepted:
138-
* `[-][DD]D[,][HH:MM:]SS[.ffffff]`
138+
* `[-][[DD]D,]HH:MM:SS[.ffffff]`
139139
* Ex: `'1d,01:02:03.000004'` or `'1D01:02:03.000004'` or `'01:02:03'`
140140
* `[±]P[DD]DT[HH]H[MM]M[SS]S` ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format for timedelta)
141141

0 commit comments

Comments
 (0)
0