473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Anyway to change the file create date?

wil
Dear All,

In the linux platform, is there anyway I can in a C program change the
file create date?

Thanks,
wil.
Nov 14 '05 #1
4 6492
In article <fa**************************@posting.google.com >,
wil <xw***@mail.hongkong.com> wrote:
Dear All,

In the linux platform, is there anyway I can in a C program change the
file create date?


No record of a file's creation date is kept in unix (and linux)
systems. The file system may keep a record of change, access and
modification times only.

Do "man 2 utime" for details.

comp.unix.programmer is the right place to ask for further questions
on this issue.

--
rr
Nov 14 '05 #2
In <fa**************************@posting.google.com > xw***@mail.hongkong.com (wil) writes:
In the linux platform,
If you need a linux solution, ask in Linux/Unix programming newsgroup.
is there anyway I can in a C program change the file create date?


Nope: C files have no timestamps. But Unix files do.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #3
>>In the linux platform, is there anyway I can in a C program change the
file create date?
No record of a file's creation date is kept in unix (and linux)
systems. The file system may keep a record of change, access and
modification times only.


Actually, on some UNIX systems, such as FreeBSD 5 when using a UFS 2 filesystem,
there is a "file birth" date. Usually the reference to a "creation date" is
from some bad documentation that called the st_ctime element of struct stat
a "creation time" rather than an "file changed time".
Do "man 2 utime" for details.
man 2 utime on FreeBSD 5 refers me to man 2 utimes, which discusses file birth
dates.
comp.unix.programmer is the right place to ask for further questions
on this issue.


Gordon L. Burditt
Nov 14 '05 #4
On 20 Jul 2004 17:49:23 GMT,
Gordon Burditt <go***********@burditt.org> wrote:

Actually, on some UNIX systems, such as FreeBSD 5 when using a UFS 2 filesystem,
there is a "file birth" date. Usually the reference to a "creation date" is
from some bad documentation that called the st_ctime element of struct stat
a "creation time" rather than an "file changed time".


which isn't the same type of change as is recorded in the modification time.

Villy
Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary Paris | last post by:
When bringing up VS 2003, there is a list of projects on the projects tab which include the name of the project and date modified. Why doesn't the date modified change when I modify the project? ...
2
by: cs168 | last post by:
Hi I am new in ASP programming so I do use the very basic and simple way to do all my stuff. Now I do really got stuck at how can I loop thru the calculation for all my selection.. My full code is as...
1
by: fresh | last post by:
I have a database that I periodically export to a text file for a Word mail merge. I have a query that finds all of the records with a null export date and a query that updates the export date to...
0
by: troutbum | last post by:
I am experiencing problems when one user has a document open through a share pointing to the web site. I use the dsolefile to read the contents of a particular directory and then display them in a...
11
by: Dixie | last post by:
How can I programatically, take some Date/Time fields present in a table in the current database and change their type to text? dixie
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
3
by: Bface | last post by:
Hi all, Hope everyone had a good holiday. I am having a difficult time changing the date format of a field from Excel. I have never had this problem before. I link the excel spreadsheet to my DB,...
10
by: mukeshrasm | last post by:
Hi the code written below is for calculating the number of days remain for a particular event based on the specific local time i.e. time in new york or time in london. <style style="text/css">...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.