- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Files date
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:13 AM
тАО02-25-2010 09:13 AM
Jan 12 2009 File1
Aug 12 1996 File2
Feb 12 12:20 File3
Jul 13 13:30 File4
Nov 11 15:20 File5
why the last two ones do not have the correct year? We are on Feb right now and they say Jul and Nov.
I know when the file does not contain the year, that means the file belongs to current year, in this case for the last two above files, they were created last year or last 2 years i do not know because they were created on July and November and right now we are on February.
Can anyone of you explain me why this happens?
thanks in advance.
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:17 AM
тАО02-25-2010 09:17 AM
SolutionThis is correct, expected behavior. If you read the manpages for 'ls' under the '-l' option you will note, "If the time of last modification is greater than six months ago, or any time in the future, the year is substituted for the hour and minute of the modification time."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:17 AM
тАО02-25-2010 09:17 AM
Re: Files date
>>year, that means the file belongs to current
>>year,
No, that's not quite right.
If the file is less than 6 months old, then the year will not be displayed.
I'm surprised that the "Jul 13" file does not have the year yet. In any case, it is relatively safe to say that both of those files are from 2009.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:20 AM
тАО02-25-2010 09:20 AM
Re: Files date
> Patrick: I'm surprised that the "Jul 13" file does not have the year yet.
We don't know from when Manuales snipped this view :-)
Certainly a file last modified on that date will show the year instead of the time today.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:40 AM
тАО02-25-2010 09:40 AM
Re: Files date
It is possible that the file was created with a 2010 (or later) year via touch or some other mechanism.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:41 AM
тАО02-25-2010 09:41 AM
Re: Files date
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1382414
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1363837
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:43 AM
тАО02-25-2010 09:43 AM
Re: Files date
It's been a long day and it's not even noon here yet.......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2010 09:44 AM
тАО02-25-2010 09:44 AM
Re: Files date
From a thread above, it has to be more than an hour in the future.