- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- date stamp of DEC 31 1969
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
Forums
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
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
тАО01-21-2007 10:09 PM
тАО01-21-2007 10:09 PM
date stamp of DEC 31 1969
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 10:19 PM
тАО01-21-2007 10:19 PM
Re: date stamp of DEC 31 1969
Using 'ls -l' means show the *mtime* (modifcation) timestamp. Using 'ls -lc' means show the *ctime* or inode change timestamp.
That said, your file was last modified at or very near the Epoch (January 1, 1970) where the number of seconds begins at zero. In your case, your TZ (timezone) offset is some hours west of GMT since you live in Canada. Thus your *mtime* is offset a few hours *less* than GMT yielding a date slightly less than January 1, 1970. The last inode change time is a current value and hence converts to a current date.
There is nothing really amiss here.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 10:47 PM
тАО01-21-2007 10:47 PM
Re: date stamp of DEC 31 1969
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 11:01 PM
тАО01-21-2007 11:01 PM
Re: date stamp of DEC 31 1969
and welcoem to the forums !
Are these files by any chance on an NFS system ? There can be mis-interpretations of timestamps via NFS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 11:05 PM
тАО01-21-2007 11:05 PM
Re: date stamp of DEC 31 1969
You can create or modify a file with any valid timestamp you wish with 'touch'. This uses the underlying 'utime(2') system call to affect the change. A C program or Perl also has the abiility to use 'utime()' directly.
You can change the *mtime* of the file to the current date and time merely by doing:
# touch myfile
If you want to set the *mtime* to say, January 22, 2007 at 0700, localtime, do:
# touch 200701220700 myfile
See the manpages for 'touch(1)' and 'stat(2)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2007 11:08 PM
тАО01-21-2007 11:08 PM
Re: date stamp of DEC 31 1969
Oops, that should have been:
...if you want to set the *mtime* to say, January 22, 2007 at 0700, localtime, do:
# touch -mt 200701220700 myfile
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2007 08:07 AM
тАО01-22-2007 08:07 AM
Re: date stamp of DEC 31 1969
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2007 08:15 AM
тАО01-22-2007 08:15 AM
Re: date stamp of DEC 31 1969
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2007 08:20 AM
тАО01-22-2007 08:20 AM
Re: date stamp of DEC 31 1969
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2007 08:47 AM
тАО01-22-2007 08:47 AM
Re: date stamp of DEC 31 1969
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2007 09:02 AM
тАО01-22-2007 09:02 AM
Re: date stamp of DEC 31 1969
> There is a very old database software ABLIX running on HP-UX 11.i. The file was created by "a database command which shows some data" > filename. I am wondering how the ">" got an file with wrong date.
You are assuming that the redirection is the *last* operation performed on 'filename'. As I indicated, the system call 'utime()' can be used to alter the access and/or modification timestamp. A zero (0) argument for either is perfectly legal. As noted, you really need to peek at the underlying code.
Regards!
...JRF...