GNU date
macos
に標準で入っている
date
は
BSD
%N
で millisec を表示できないなど
code:sh
brew install coreutils
gdate
command で使えるようになる