![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command to get File Timestamp including seconds [Aix 5.3] | firdousamir | Shell Programming and Scripting | 8 | 05-08-2009 08:43 AM |
| Changing Creation Date to a Prespecified Date of a File In Unix | monkfan | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 07:15 AM |
| Displaying file names before a particular creation date | dhruv_saksena | UNIX for Dummies Questions & Answers | 1 | 09-02-2005 08:19 AM |
| file creation date & time | alisevA3 | UNIX for Dummies Questions & Answers | 3 | 07-08-2005 05:21 AM |
| Converting the File Creation Date to a new format | barney_clough | UNIX for Dummies Questions & Answers | 1 | 06-12-2002 07:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
an extention to LiveinFree's post.
as my perl book says the filessystem keeps the following times: last asscess time, last modification time, last inode-change time. you can get this info by useing stat. man stat for more info. |
|
||||
|
I do notice that your filename already has a datestamp on it....you could look at getting the datestamp that is used to create the file changed to include the seconds as well...
i.e. filename=StatData\.`date +%Y%m%d%M%H%S` It probably is currently set at (assuming it is scripted to set the date stamp on the file at the time of creation). filename=StatData\.`date +%Y%m%d%` |
|
||||
|
Sorry, I'm asking about file date&time below file date&time = Aug 22 15:41, here i will find only hh:mm, my question is how to see hh:mm:ss??????
-rw-r--r-- 1 opsc system 422550845 Aug 22 15:41 StatData.200208 Quote:
|
|
||||
|
I see.... well in terms of creation date - the answer is you can't - it is not held at all. (Hence my suggestion about having the filenames changed to include the seconds).
If you're after the seconds for last modified - or last accessed....you might be able to do it if you can decipher this from the man page for ls (although that might only be for old files??) Quote:
|
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|