-bash: (1638285455N: value too great for base (error token is "1638285455N")
This is because macOS's native date doesn't support %N. I tried installing coreutils from brew, but that installs it as gdate by default. At this point, there's 2 workarounds that I could think of:
replace date with gdate in duration_segment
(which I ended up using, suggested by brew) prepend PATH with /usr/local/opt/coreutils/libexec/gnubin to make the binaries installed by coreutils have precedence over macOS native ones
Not sure what a proper fix would be, just leaving this here for others running into it.
Under macOS
duration_segment
fails withThis is because macOS's native
date
doesn't support%N
. I tried installingcoreutils
frombrew
, but that installs it asgdate
by default. At this point, there's 2 workarounds that I could think of:replace
date
withgdate
induration_segment
(which I ended up using, suggested by
brew
) prependPATH
with/usr/local/opt/coreutils/libexec/gnubin
to make the binaries installed bycoreutils
have precedence over macOS native onesNot sure what a proper fix would be, just leaving this here for others running into it.