LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Current time in milliseconds (https://www.linuxquestions.org/questions/linux-newbie-8/current-time-in-milliseconds-661368/)

charubcl 08-08-2008 04:38 AM

Current time in milliseconds
 
how to get currenttime in milliseconds in linux command

pixellany 08-08-2008 05:22 AM

Is this homework?

Look at the manpage for the "date" command (Just enter "man date" in a terminal. You'll see options which give the time in nano-seconds. A bit of arithmetic will get you to milliseconds.

vimal 08-08-2008 05:28 AM

Hello,

As our colleague pixellany has stated, there is no direct option for date to be displayed in milli-seconds. I too had a similar scenario sometime ago but was only able to get the nano-seconds option.

Regards,

Vimal Kumar


All times are GMT -5. The time now is 02:23 PM.