|
From: Agnar R. <agn...@em...> - 2004-02-04 15:23:25
|
Dear Donald,
I was tinkering with a tcl-program of mine and needed the creation date of a file. To my dismay, the Tcl clock command refers to a 'ctime' option of the file command, but it seems that this option is not implemented, despite the existence of 'atime' and 'mtime' options.
Hence i send you this TIP:
Sincerely Yours,
Agnar Renolen
NORWAY
TIP: ???
Title: file ctime command
Version: $1.0$
Author: Agnar Renolen ''agn...@em...''
State: Draft
Type: Project
Tcl-Version: 8.4
Vote: Pending
Created: 4-Feb-2004
Post-History:
~ Abstract
This TIP proposes a ''ctime'' option to the tcl ''file'' command to
return the creation date of a file.
~ Copyright
This document has been placed in the public domain.
~ Specification
The following option is added to the ''file'' command.
| file ctime ''name'' ?ctime?
Returns a decimal string giving the time at which the file ''name'' was
created. If ''ctime'' is specified, sets the creation time of the file.
See the ''atime'' and ''mtime'' options of the ''file'' command for more
information. The ''ctime'' option should be identical to the other two
options except that it operates on the creation time of the file.
~ Rationale
All file systems associate a creation time to each file. It should be
possible to obtain this date using Tcl.
The ''clock'' command refers to this option, but it is not implemented.
It appears that this option was planned for the ''file'' command. But,
for some reason, it was left out.
|