]> Sergey Matveev's repositories - public-inbox.git/commit
git: implement date_parse method
authorEric Wong <e@80x24.org>
Mon, 8 Feb 2021 09:05:18 +0000 (23:05 -1000)
committerEric Wong <e@80x24.org>
Mon, 8 Feb 2021 22:07:48 +0000 (22:07 +0000)
commit9e9ab7447b219bad3f764dfc646d8d7e9d7c39f4
treeff5e48bb1ddd7cb799fedcd6d7eee70b09be0d75
parent1b3016fbb108d3dbf50ced53012eabbfec4536ea
git: implement date_parse method

Users are expected to be familiar with git's "approxidate"
functionality for parsing dates, so we'll expose that
in our UIs.  Xapian itself has limited date parsing functionality
and I can't expect users to learn it.

This takes around 4-5ms on my aging workstation, so it'll
probably be made acceptable for the WWW UI, even.

libgit2 has a git__date_parse function which I expect to have
less overhead, but it's only for internal use at the moment.
lib/PublicInbox/Git.pm
t/git.t