PC Review


Reply
Thread Tools Rate Thread

Question about last modified/last written dates

 
 
Kelly FitzGerald
Guest
Posts: n/a
 
      2nd Jul 2003
Hi,
I have a question about the logic of the filesystem

Imagine I create a document named dog.txt.

I open it and start modifying it.

Will the time last modified be the time of the first
modifying keystroke I make or when I go to save the
changes?

Also if time last modified and time last written one and
the same?

Thanks,
Kelly
 
Reply With Quote
 
 
 
 
jr tipton \(MSFT\)
Guest
Posts: n/a
 
      2nd Jul 2003
Last modified time will be adjusted some time after the application has
modified the file -- just because you're editing data that happens to be in
the file does not mean that the application has, necessarily, modified the
file itself. (The answer here is probably "when you save the changes" or
more accurately "when the application changes the file.") There are a
handful of rules surrounding this if you're trying to get the exact answer,
but that is the general idea.

JR Tipton
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not respond to this mail alias as it is used for newsgroup
purposes only.

"Kelly FitzGerald" <(E-Mail Removed)> wrote in message
news:0be201c34026$043d5890$(E-Mail Removed)...
> Hi,
> I have a question about the logic of the filesystem
>
> Imagine I create a document named dog.txt.
>
> I open it and start modifying it.
>
> Will the time last modified be the time of the first
> modifying keystroke I make or when I go to save the
> changes?
>
> Also if time last modified and time last written one and
> the same?
>
> Thanks,
> Kelly



 
Reply With Quote
 
Mark Zbikowski \(MSFT\)
Guest
Posts: n/a
 
      2nd Jul 2003
Hmmm... I'm not sure there's a good writeup beyond the
source code.

For your question about dog.txt... the principle here is that
when an application is given a write-command, that's when
the the last-write time (within some precision and other
rules) is updated. So, assuming the WP app you're running
does no writes EXCEPT at full-save and autosave time, then
the timestamp on the file will be when those events occur.

YMMV.

--
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.

"Kelly FitzGerald" <(E-Mail Removed)> wrote in message
news:01b701c340b5$52352a20$(E-Mail Removed)...
> thanks JR that was definately helpfull!
>
> I'm just curious, i've been trying to find some articles
> for a little more precision. . Do you have any papers or
> articles that can point me to the right answer. .
>
> Also, If my file dog.txt is being edited in word with auto-
> save will it show the mod time change (assuming the file
> has been changing) everytime an autosave occurs?
>
> Thanks,
> Kelly
> >-----Original Message-----
> >Last modified time will be adjusted some time after the

> application has
> >modified the file -- just because you're editing data

> that happens to be in
> >the file does not mean that the application has,

> necessarily, modified the
> >file itself. (The answer here is probably "when you save

> the changes" or
> >more accurately "when the application changes the

> file.") There are a
> >handful of rules surrounding this if you're trying to get

> the exact answer,
> >but that is the general idea.
> >
> >JR Tipton
> >--
> >This posting is provided "AS IS" with no warranties, and

> confers no rights.
> >Please do not respond to this mail alias as it is used

> for newsgroup
> >purposes only.
> >
> >"Kelly FitzGerald" <(E-Mail Removed)> wrote in message
> >news:0be201c34026$043d5890$(E-Mail Removed)...
> >> Hi,
> >> I have a question about the logic of the filesystem
> >>
> >> Imagine I create a document named dog.txt.
> >>
> >> I open it and start modifying it.
> >>
> >> Will the time last modified be the time of the first
> >> modifying keystroke I make or when I go to save the
> >> changes?
> >>
> >> Also if time last modified and time last written one and
> >> the same?
> >>
> >> Thanks,
> >> Kelly

> >
> >
> >.
> >



 
Reply With Quote
 
jr tipton \(MSFT\)
Guest
Posts: n/a
 
      2nd Jul 2003
In addition: since you mentioned precision, I think the right thing is
probably to think about doing whatever it is you want to do in another way.
For the vast majority of the reasons you might care about file modified
times, there are other methods which serve you better (change notifications,
change journals, etc). These techniques are described in the Platform SDK.

JR Tipton
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not respond to this mail alias as it is used for newsgroup
purposes only.

"Mark Zbikowski (MSFT)" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hmmm... I'm not sure there's a good writeup beyond the
> source code.
>
> For your question about dog.txt... the principle here is that
> when an application is given a write-command, that's when
> the the last-write time (within some precision and other
> rules) is updated. So, assuming the WP app you're running
> does no writes EXCEPT at full-save and autosave time, then
> the timestamp on the file will be when those events occur.
>
> YMMV.
>
> --
> Disclaimer: This posting is provided "AS IS" with no warranties, and

confers
> no rights.
>
> "Kelly FitzGerald" <(E-Mail Removed)> wrote in message
> news:01b701c340b5$52352a20$(E-Mail Removed)...
> > thanks JR that was definately helpfull!
> >
> > I'm just curious, i've been trying to find some articles
> > for a little more precision. . Do you have any papers or
> > articles that can point me to the right answer. .
> >
> > Also, If my file dog.txt is being edited in word with auto-
> > save will it show the mod time change (assuming the file
> > has been changing) everytime an autosave occurs?
> >
> > Thanks,
> > Kelly
> > >-----Original Message-----
> > >Last modified time will be adjusted some time after the

> > application has
> > >modified the file -- just because you're editing data

> > that happens to be in
> > >the file does not mean that the application has,

> > necessarily, modified the
> > >file itself. (The answer here is probably "when you save

> > the changes" or
> > >more accurately "when the application changes the

> > file.") There are a
> > >handful of rules surrounding this if you're trying to get

> > the exact answer,
> > >but that is the general idea.
> > >
> > >JR Tipton
> > >--
> > >This posting is provided "AS IS" with no warranties, and

> > confers no rights.
> > >Please do not respond to this mail alias as it is used

> > for newsgroup
> > >purposes only.
> > >
> > >"Kelly FitzGerald" <(E-Mail Removed)> wrote in message
> > >news:0be201c34026$043d5890$(E-Mail Removed)...
> > >> Hi,
> > >> I have a question about the logic of the filesystem
> > >>
> > >> Imagine I create a document named dog.txt.
> > >>
> > >> I open it and start modifying it.
> > >>
> > >> Will the time last modified be the time of the first
> > >> modifying keystroke I make or when I go to save the
> > >> changes?
> > >>
> > >> Also if time last modified and time last written one and
> > >> the same?
> > >>
> > >> Thanks,
> > >> Kelly
> > >
> > >
> > >.
> > >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
See ALL Modified Dates (not just Last Modified)? RJRJ Microsoft Word New Users 1 11th Jul 2011 06:11 AM
File modified dates and XP extraction wizard question Kevin L Windows XP General 0 10th Nov 2009 02:18 PM
Dates on files written to CDs Bobbi Windows XP General 3 23rd Jul 2008 12:19 AM
modified dates mike Microsoft Word Document Management 0 29th Jun 2007 11:22 PM
Files cannot be written/modified everywhere?? =?Utf-8?B?cHJhc2Fk?= Windows Vista File Management 5 16th Dec 2006 06:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 PM.