summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-05 21:54:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-05 21:54:26 (GMT)
commitcdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9 (patch)
tree20586a3f3fad1fed880272b800c0b03db586e7e3 /Documentation
parentfd65fc3960a972ab2f03b94d08f0e421d9ee22bb (diff)
parent544ed961a50c3442a3ec5643f2c443cd3e17311a (diff)
downloadgit-cdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9.zip
git-cdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9.tar.gz
git-cdfa156a93ffb2e0bb2a25714e2c2e74dfa71fd9.tar.bz2
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 6926e0a..7e7eaba 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`.