You are here: Re: File Created Date? « PHP Programming Language « IT news, forums, messages
Re: File Created Date?

Posted by Michael Vilain on 02/15/06 10:47

In article <138d.43f15d36.64a72@clunker.homenet>,
Jasen Betts <jasen@free.net.nz> wrote:

> On 2006-02-13, Gordon Burditt <gordonb.czonn@burditt.org> wrote:
> >>I know about getlastmod() but is there one for created date?
> >>
> >>If not is there some other way of getting the created date of a file?
>
> filemtime, stat, fstat, lstat, `ls -lc $fname` ....
>
> > Very few operating systems keep the created date of a file.
>
> Linux, and and anything with VFAT or NTFS ( = windows-32bit+) do.
>
> I'd be surprised if BSD or OS/X are different.
>
> which OS's don't?
>
>
> Under linux the "creation" date is really the date of last change of the inode
> (last time the file changed size or access permissions) and the
> modification time is the time the file data was written.
>
> access time is the last time the file content was read, VFAT only stores
> the access date IIRC. dunno about NTFS.
>
>
>
>
> Bye.
> Jasen

MacOS X stores the file creation date but in the Finder's attributes,
not the inode. So, ls still shows ctime but using getFile will display
the file create time plus various Finder flags.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация