In this short article we would like to show how to print unix time in milliseconds in Unix / Linux terminal.
date +%s%N | cut -b 1-13 # or echo $(($(date +%s%N) / 1000000))
Some linux distributions and Unix based operating systems like OS X could do not upport
%N, so it can be necessary to use other solution to get it. Below description shows how to do it with different techniques.
|wget + internet|
|curl + link|
Example time source for