From: Stephen & Linda Smith Date: Thu, 03 Jan 2019 13:12:02 GMT Subject: Re: [PATCH 3/3] t0006-date.sh: add `human` date format tests. Message-ID: <3321253.lROl3XOJ1W@thunderbird> In-Reply-To: <20190103074421.GC24925@sigill.intra.peff.net> On Thursday, January 3, 2019 12:44:22 AM MST Jeff King wrote: > We already have $TEST_DATE_NOW, which "test-tool date" will respect for > various commands to pretend that it's currently a particular time. I > think you'd need to add a sub-command similar to "relative" (which > directly calls show_date_relative()) which calls into the "human" code. I'll investigate. Looks like this comment is related other comments. > Note that there _isn't_ a way to have actual non-test git programs read > the current time from an environment variable (as opposed to actually > calling gettimeofday()). Agreed > > -Peff