This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File creation time oddity


Ronald Fischer <ronald.fischer <at> venyon.com> writes:

> ~/thome/tmp $ date
> Thu Aug 16 16:49:35     2007
> ~/thome/tmp $ ls -l dummy3
> -rw-r--r-- 1 rfischer mkgroup-l-d 2 Aug 16 16:42 dummy3
> 
> As you can see, ls -l shows 16:42 for the creation time,

No idea why your ctime and mtime disagree - are you sure your system clock and 
BIOS clock match?  Have you recently used an NTP server to align your clock 
with the rest of the world?  However, I want one thing to be clear - ls does 
not list creation time; it lists change time (ctime not stand for creation time 
in POSIX, instead, the BSD notion birthtime, aka Btime, maps to the Windows 
creation time - for full birthtime support in cygwin, you need to use a 
snapshot, as cygwin 1.5.24 does not support querying birthtime).

Also, stat(1) may be nicer than ls(1) for figuring these timestamp issues out.

-- 
Eric Blake
volunteer cygwin coreutils maintainer




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]