Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2008, 05:38 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Current time in milliseconds

how to get currenttime in milliseconds in linux command
Old 08-08-2008, 06:22 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
Old 08-08-2008, 06:28 AM   #3
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34

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.


Vimal Kumar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
c program to get the current time mathimca05 Programming 4 04-05-2008 11:02 AM
how to display the current time at a different timezone stinkytofoo Linux - Software 3 07-18-2007 04:41 AM
Time in milliseconds davidguygc Programming 2 04-25-2007 07:03 PM
C/C++ API for retrieving system time in micro or milliseconds syseeker Programming 1 05-04-2006 08:15 AM
How to koow the current time.... as lobg.. rajsun Programming 2 04-25-2005 02:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration