summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-05-05 14:54:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-05 14:54:26 -0700
commitcdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9 (patch)
tree20586a3f3fad1fed880272b800c0b03db586e7e3 /Documentation
parentMerge branch 'bc/wildcard-credential' (diff)
parentdate.c: allow compact version of ISO-8601 datetime (diff)
downloadtgif-cdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9.tar.xz
Merge branch 'dd/iso-8601-updates'
The approxidate parser learns to parse seconds with fraction. * dd/iso-8601-updates: date.c: allow compact version of ISO-8601 datetime date.c: skip fractional second part of ISO-8601 date.c: validate and set time in a helper function date.c: s/is_date/set_date/
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/date-formats.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/date-formats.txt b/Documentation/date-formats.txt
index 6926e0a4c8..7e7eaba643 100644
--- a/Documentation/date-formats.txt
+++ b/Documentation/date-formats.txt
@@ -20,7 +20,10 @@ RFC 2822::
ISO 8601::
Time and date specified by the ISO 8601 standard, for example
`2005-04-07T22:13:13`. The parser accepts a space instead of the
- `T` character as well.
+ `T` character as well. Fractional parts of a second will be ignored,
+ for example `2005-04-07T22:13:13.019` will be treated as
+ `2005-04-07T22:13:13`
+
+
NOTE: In addition, the date part is accepted in the following formats:
`YYYY.MM.DD`, `MM/DD/YYYY` and `DD.MM.YYYY`.