On 2020-04-22 at 20:40:48, Yuri wrote: > For example, the following command accepts an invalid month "Dx" and an > invalid year "20221" and sets the month to "Apr" and the year to "2020". The --date argument accepts a wide variety of formats, including some formally specified ones, as well generalized handling through the "approxidate" approach. So it's designed to operate on formats that are not well understood and do the best it can with them. This also allows it do things like ignore the irrelevant word "ago" in "5 days ago" and still do the right thing. If you want to be sure that your date is uniformly understood, then the best approach is to either use the Git internal format or RFC 3339 (which is a profile of ISO 8601). -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204
Attachment:
signature.asc
Description: PGP signature