git date specification formats documentation?

Viewed 61

Where can I find definitive documentation on all the date formats / expressions I'm allowed to use in e.g. HEAD@{datespec}?

For example, I just discovered I'm allowed to say not only yesterday (documented in git-revisions doc) but also e.g. last.monday.morning. How do I learn that, and all forms of legal date expression that can go here?

(It's not in the git-revisions doc. It's not in the git-log doc; I see that it tells me I can receive a relative date, but it doesn't tell me all the ways to say a relative date.)

1 Answers

Looks like currently there's no proper documentation out there that can serve your purpose.

So, in order to get your concern ( and similar concerns of others ) addressed, the only place (as of now) you can go to is the code base itself and find out ( which in itself is another question for beginners, as to how to navigate the source code and dig deeper just to find the allowed expressions/values/codes buried somewhere deep in the source code ), additionally learn some C/perl/bash/python and other things just to understand the source code.

Long story short, this-thing-here can help you.

Related