linux - how to get ubuntu file timestamp in millisecond -


Linux friends, how do you guys get a file timestamp in millisecond resolution in Ubuntu? When I try the "State" command on my system, I get:

  File: `tmp.dat 'Size: 14 blocks: 8 Io blocks: 4096 Regular file device: 811 H / 2065D Inode: 1389454 Link: 1 Reach: (0644 / -r-R-RA) UID: (1000 / sure) Gid: (1004 / Dev) Access: 2010-09-27 09: 04 : 44.000000000 -00000 Modify: 2010-09-25 13: 54: 58.000000000 -0400 Change: 2010-09-25 13: 54: 58.000000000 -0400  

It seems that resolution only Is there any other idea? Thanks a lot.

This file depends on the system. fat will give you a 2 second resolution. ext2 and ext3 are based on seconds. Find nanoseconds ("minimum timestamp resolution" in ext4 ).


Comments