bash milliseconds code example
Example 1: date linux show millis
# Returns the number of seconds + current nanoseconds.
date +%s%N
Example 2: unix timestamp bash
date +%s
# Give the number of seconds since epoch
# Returns the number of seconds + current nanoseconds.
date +%s%N
date +%s
# Give the number of seconds since epoch