Skip to content

Date

Get epoch in nanoseconds

On MacOS, get coreutils (brew install coreutils).

echo $(($(date +%s%N)/1000000))