t5526: avoid depending on a specific default branch name
[git] / Documentation / date-formats.txt
1 DATE FORMATS
2 ------------
3
4 The `GIT_AUTHOR_DATE`, `GIT_COMMITTER_DATE` environment variables
5 ifdef::git-commit[]
6 and the `--date` option
7 endif::git-commit[]
8 support the following date formats:
9
10 Git internal format::
11         It is `<unix timestamp> <time zone offset>`, where `<unix
12         timestamp>` is the number of seconds since the UNIX epoch.
13         `<time zone offset>` is a positive or negative offset from UTC.
14         For example CET (which is 1 hour ahead of UTC) is `+0100`.
15
16 RFC 2822::
17         The standard email format as described by RFC 2822, for example
18         `Thu, 07 Apr 2005 22:13:13 +0200`.
19
20 ISO 8601::
21         Time and date specified by the ISO 8601 standard, for example
22         `2005-04-07T22:13:13`. The parser accepts a space instead of the
23         `T` character as well. Fractional parts of a second will be ignored,
24         for example `2005-04-07T22:13:13.019` will be treated as
25         `2005-04-07T22:13:13`.
26 +
27 NOTE: In addition, the date part is accepted in the following formats:
28 `YYYY.MM.DD`, `MM/DD/YYYY` and `DD.MM.YYYY`.