Not exactly, no. You can easily extract either of the two time-stamps (author-date and committer-date) but neither one necessarily has anything to do with the actual creation date. For instance:
But, if you are not worried about the computer clock being wildly wrong and/or users deliberately faking their time-stamps, use %at or %ct or any of the variants of those to extract the author or committer time stamps:
$ git log --no-walk --format=%at HEAD
28800
$ git log --no-walk --format=%cd HEAD
Thu Jan 1 00:00:00 1970 -0800
Not exactly, no. You can easily extract either of the two time-stamps (author-date and committer-date) but neither one necessarily has anything to do with the actual creation date. For instance:
But, if you are not worried about the computer clock being wildly wrong and/or users deliberately faking their time-stamps, use
%ator%ctor any of the variants of those to extract the author or committer time stamps:See the PRETTY FORMATS section of the
git logdocumentation for details.