Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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..
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unix #epoch #miliseconds #shell
ADD COMMENT
Topic
Name
7+6 =