LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-08-2008, 04:38 AM   #1
charubcl
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, 05:22 AM   #2
pixellany
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, 05:28 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
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
 
  


Reply


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 10:02 AM
how to display the current time at a different timezone stinkytofoo Linux - Software 3 07-18-2007 03:41 AM
Time in milliseconds davidguygc Programming 2 04-25-2007 06:03 PM
C/C++ API for retrieving system time in micro or milliseconds syseeker Programming 1 05-04-2006 07:15 AM
How to koow the current time.... as lobg.. rajsun Programming 2 04-25-2005 01:59 AM


All times are GMT -5. The time now is 03:09 PM.

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