]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/date-formats.txt
t4034: abstract away SHA-1-specific constants
[thirdparty/git.git] / Documentation / date-formats.txt
CommitLineData
788070a2
MV
1DATE FORMATS
2------------
3
47d81b5c 4The `GIT_AUTHOR_DATE`, `GIT_COMMITTER_DATE` environment variables
788070a2
MV
5ifdef::git-commit[]
6and the `--date` option
7endif::git-commit[]
8support the following date formats:
9
10Git internal format::
0ffa154b 11 It is `<unix timestamp> <time zone offset>`, where `<unix
788070a2 12 timestamp>` is the number of seconds since the UNIX epoch.
0ffa154b 13 `<time zone offset>` is a positive or negative offset from UTC.
e2c20be5 14 For example CET (which is 1 hour ahead of UTC) is `+0100`.
788070a2
MV
15
16RFC 2822::
17 The standard email format as described by RFC 2822, for example
18 `Thu, 07 Apr 2005 22:13:13 +0200`.
19
20ISO 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.
24+
25NOTE: In addition, the date part is accepted in the following formats:
26`YYYY.MM.DD`, `MM/DD/YYYY` and `DD.MM.YYYY`.