shell script get epoch time in milliseconds code example
Example 1: unix get epoch in miliseconds shell
date +"%T.%6N" # returns the current time with nanoseconds rounded to the first 6 digits, which is microseconds
# In general, every field of the `date` command's format can be given an optional field width..
Example 2: date linux show millis
# Returns the number of seconds + current nanoseconds.
date +%s%N