LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-03-2007, 12:40 AM   #1
postiwala
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Rep: Reputation: 0
How to get the value of miliseconds


What is the command which gives the file creation time in milli seconds.



Presently i am using the command "ls --fulltime -tr filename", this gives the time in hour: mins: secs: milli secs.

But the millisecs field is shown as 00000000. How to get the value in this field.



So please let me know is there an way by which i can get the hour:mins:secs:millisecs fields.



Thanks in advance.
 
Old 08-03-2007, 02:11 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
From man ls:
Quote:
Unix filesystems store file timestamps only to the nearest second
This implies that you can't get milliseconds.

Last edited by Wim Sturkenboom; 08-03-2007 at 02:12 AM.
 
Old 08-03-2007, 02:12 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
Are you sure that your filesystem really retains milliseconds? As far as I rememeber, extended 2/3 retains unix timestamp - which is number of seconds since the Epoch.
 
  


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
catching a rogue or unknown process that last miliseconds on an "idle system" Emmanuel_uk Linux - Security 3 06-11-2006 05:42 PM
Miliseconds in c ChimpFace9000 Programming 1 06-08-2002 04:49 AM


All times are GMT -5. The time now is 07:03 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