comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL Windows Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL Windows Question [message #77069] Tue, 02 August 2011 04:29 Go to next message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 1 Aug 2011 12:07:04 -0600, David Fanning <news@idlcoyote.com>
wrote:

> This is Windows 7 with all updates running IDL 7.1.
> Any ideas about this?

A file has three different timestamps
1. File-Create time
2. Last-Modify (Last-Write) time
3. Last-Access time

From the examples below you see that the timestamps get updated
(marked with *) as you would expect:

A. Create a new PNG file
write_png,'c:\testimage.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:19:52
2. dinsdag 2 augustus 2011, 13:19:52
3. dinsdag 2 augustus 2011, 13:19:52

B. Create a PNG file with the same name
write_png,'c:\testimage.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:19:52
2. dinsdag 2 augustus 2011, 13:20:11 (*)
3. dinsdag 2 augustus 2011, 13:20:11 (*)

C. Create a new PNG file
write_png,'c:\image.png',bytarr(200,200)
1. dinsdag 2 augustus 2011, 13:12:52
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:12:52

D. Copy the file
file_copy,'c:\image.png','c:\image2.png'
1. dinsdag 2 augustus 2011, 13:15:35 (*)
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:15:35 (*)
(image.png timestamps not changed)

E. Move the file
file_move,'c:\image2.png','c:\image3.png'
1. dinsdag 2 augustus 2011, 13:15:35
2. dinsdag 2 augustus 2011, 13:12:52
3. dinsdag 2 augustus 2011, 13:16:49 (*)
Re: IDL Windows Question [message #77071 is a reply to message #77069] Mon, 01 August 2011 14:17 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> I don't know anything about Windows, but I assume there is some
> underlying metadata in the filesystem that resembles what Unix/Linux
> provides.
>
> Are you looking at the creation date or the modification date?

Well, I don't know what I am looking for! :-)

In the File Explorer I choose to display the file
using the "Details" view. I see a "Date" field.
Perhaps that is the creation date and not the
modification date, which I was expecting. That
could certainly explain what I am seeing.

Ah, that is exactly what the problem is. If I
look at the file in more detail by choosing the
"Properties" dialog, I see both the creation and
modification dates.

Thanks for the help!

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDL Windows Question [message #77072 is a reply to message #77071] Mon, 01 August 2011 13:46 Go to previous messageGo to next message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.28a09930b95b482f98991c@news.giganews.com>,
David Fanning <news@idlcoyote.com> wrote:

> Folks,
>
> This isn't an IDL question per se, I don't thing, but it
> happens when I am using IDL.
>
> Suppose I have a PNG file named "test.png" in a directory.
> Suppose I created the file last week, which is reflected
> in the time stamp of the file.
>
> If I run the program that creates this program today,
> the PNG file gets created OK, but the time stamp does
> NOT get updated. Even if I "refresh" the File Explorer
> window, it retains the date from last week. If I delete
> the file first, then the file is created with the proper
> time stamp.
>
> This is Windows 7 with all updates running IDL 7.1.
> Any ideas about this?
>
> Thanks,
>
> David

I don't know anything about Windows, but I assume there is some
underlying metadata in the filesystem that resembles what Unix/Linux
provides.

Are you looking at the creation date or the modification date?

Ken
Re: IDL Windows Question [message #77158 is a reply to message #77071] Tue, 02 August 2011 12:39 Go to previous message
Scott[1] is currently offline  Scott[1]
Messages: 33
Registered: September 2009
Member
"The semantics of creation times is the source of some controversy."
http://en.wikipedia.org/wiki/MAC_times#Change_time_and_creat ion_time_.28ctime.29
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Efficient pattern-matching in a large array
Next Topic: IDL Windows Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:36:40 PDT 2025

Total time taken to generate the page: 0.00638 seconds