Re: [FEATURE REQUEST] Filter-branch extend progress with a simple estimated time remaning
- From
Gabor Bernat <bernat@primeranks.net>
- Date
- Aug 30, 2015, 03:00 UTC
- Message-ID
- <CANy2qHfuFB6zJc0x_gDGT9MXtwQn2Jkb7v1mWyKoA8g1MjgGBA@mail.gmail.com>
- In-Reply-To
- <CAPig+cSspbWKUcnp6NJ1rjYyWQV8bO3ZmV7L_J7QaHRFRh3-wg@mail.gmail.com>
Reading after it, I think the most close we can get with this is, awk 'BEGIN { print strftime("%c", 1271603087); }; and just ignore setting this value (and avoid displaying it) if that fails too. Do you agree? Bernát GÁBOR
On Sun, Aug 30, 2015 at 3:20 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 15 quoted lines
> On Sat, Aug 29, 2015 at 9:29 AM, Gabor Bernat <bernat@primeranks.net> wrote: >> Amended, the latest version is at https://github.com/gaborbernat/git/commit/ :) >> Does this looks okay, should I create a patch from this? > > Excerpt: > > now=$(date +%s) > elapsed=$(($now - $start)) > remaining_second=$((...)) > eta=$(($now + $remaining_second)) > finish_by=$(date -d "@$eta") > > Unfortunately, -d is not portable. On Mac OS X and FreeBSD, -d sets > the kernel's value for Daylight Saving Time, rather than displaying > the specified time as in Linux.