Re: read/write file timestamp

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek wrote:

> ----- Original Message ----- 
> From: "Kat"
>
>>
>> How does one read the epoch time for a file in Eu on windoze, and then
>> apply that timestamp to another file? I know dir() lists the time and date,
>> but
>> that's not epoch time, and it doesn't write a new timestamp or other
>> attributes
>> to a file. Win32lib has a attribute set for hidden, system, compressed, etc,
>> but not time/date ?
>>
>
> Kat,
> I don't think Windows has a concept of epoch time. The files times are
> stored as a 64-bit value representing the number of 100-nanosecond
> intervals since January 1, 1601.
>
> And there is no API to change the datetimes (that I know of).

There actually is. I just remembered, that I already had published it.
smile Sorry Kat, I didn't think of it, when I replied the first time.
(Things like this sometimes happen, when one gets older...)

Go to http://home.arcor.de/luethje/prog/ and get the file 'mbox100.zip'.
It comes with the Euphoria source code. Look at 'winfile.e'.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu