blob: 35e8da201005dee34b75c87aebf720a8f7300a9c [file] [log] [blame]
Junio C Hamanoae05fee2010-01-08 07:39:461DATE FORMATS
2------------
3
Junio C Hamano042f2142016-06-27 18:05:054The `GIT_AUTHOR_DATE`, `GIT_COMMITTER_DATE` environment variables
Junio C Hamanoae05fee2010-01-08 07:39:465ifdef::git-commit[]
6and the `--date` option
7endif::git-commit[]
8support the following date formats:
9
10Git internal format::
Junio C Hamanoe3acfb82013-11-12 23:22:5711It is `<unix timestamp> <time zone offset>`, where `<unix
Junio C Hamanoae05fee2010-01-08 07:39:4612timestamp>` is the number of seconds since the UNIX epoch.
Junio C Hamanoe3acfb82013-11-12 23:22:5713`<time zone offset>` is a positive or negative offset from UTC.
Junio C Hamanoae05fee2010-01-08 07:39:4614For example CET (which is 2 hours ahead UTC) is `+0200`.
15
16RFC 2822::
17The standard email format as described by RFC 2822, for example
18`Thu, 07 Apr 2005 22:13:13 +0200`.
19
20ISO 8601::
21Time 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`.