Thread (25 messages) flat view 25 messages, 5 authors, 2016-06-15

Re: [PATCH] Round-down years in "years+months" relative date view

From: Alex Riesen <hidden>
Date: 2016-06-15 22:47:20

On Fri, Aug 28, 2009 at 21:15, Jeff King[off-list ref] wrote:
On Fri, Aug 28, 2009 at 09:03:19PM +0200, Alex Riesen wrote:
quoted
+unsigned long approxidate(const char *date)
+{
+     struct timeval tv;
+     gettimeofday(&tv, NULL);
+     return approxidate_relative(date, &tv);
+}
This now always calls gettimeofday, whereas the original approxidate
only did if parse_date failed.
Oh, bugger...
On the other hand, refactoring the relative date code into its own
function is probably a good thing in the long run.
Exactly.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help