[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sun, 10 Feb 2002 15:34:56 -0800



On Mon, Feb 11, 2002 at 09:10:35AM -0500, dman wrote:
> On Mon, Feb 11, 2002 at 02:46:01AM +0100, G|nter Knab wrote:
>
*snipped*

Thanks for the explanation! Now I try to reformulate my question so
precise as
you answer:)

On Sun, 10 Feb 2002 16:38:10 -0800 ben wrote
> one if my /dev/ files has a mysterious date of 0 april 2001

That _is an invalid_ date, see:
touch -t 200104000000 date.ben
touch: invalid date format `200104000000'

The file (a block special file with no attached hardware, as i think)
has an valid date entry in its inode, the disc is ok.  I think there
was an problem in his software:

# modification time
find /dev/filename -printf "%p\t%t\t%T@\n"
# status change time
find /dev/filename -printf "%p\c%t%C@\n"
# access time
find /dev/filename -printf "%p\t%a\t%A@\n"

touch the file with the shown date (subtracting your TZ), you should
get something around the 1. april (no joke:)

What backup software do you use? May there is the problem?

--gk

I have just played around:

touch date.now
touch -t 197001010000 date.myepoch
touch -t 197001010100 date.theepoch
touch -t 196912310000 date.dman

ls -l date.*
-rw-r--r--    1 gk       users           0 Feb 12 23:31 date.now
-rw-r--r--    1 gk       users           0 Jan  1  1970 date.myepoch
-rw-r--r--    1 gk       users           0 Jan  1  1970 date.theepoch
-rw-r--r--    1 gk       users           0 Dec 31  1969 date.dman

find date.* -printf "%p\t%t\t%T@\n"
date.now	Tue Feb 12 23:31:32 2002	1013553092
date.myepoch	Thu Jan  1 00:00:00 1970	-3600
date.theepoch	Thu Jan  1 01:00:00 1970	0
date.dman	Wed Dec 31 00:00:00 1969	-90000

date --iso-8601=seconds
2002-02-12T23:40:37+0100

# the -3600 seconds above are my timezone UTC-1:
date  --iso-8601=seconds --utc --reference=date.myepoch
1969-12-31T23:00:00Z

this is "the epoch" (zero seconds):
date  --iso-8601=seconds --utc --reference=date.theepoch
1970-01-01T00:00:00Z




Reply to: