Re: Get last write time bug!

Tech-Archive recommends: Speed Up your PC by fixing your registry



Vladimir <xozar@xxxxxx> wrote:
> > If calling SetLastWriteTime with the value returned by GetLastWriteTime
> > changes the value, that defeinitely seems odd.
>
> Yes, and it depends entirely on time value.
>
> 22.10.98 03:06:06 transformed to 22.10.98 02:06:06 (bug)
> but for example
> 23.10.98 03:06:06 is not transformed to 23.10.98 02:06:06 (not bug)

Out of interest, is that the date that daylight saving time changes in
your locale?

> How about this in .Net Framework 2.0?
> I don't have it beta version.

Me either, I'm afraid.

> > Have you tried using the UTC versions? (File.SetLastWriteTimeUtc etc)
>
> In case of said above times that's all right with utc versions.

Right - I'd suggest using the UTC versions then. In fact, I think
that's a better bet usually anyway :)

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Museu Villa-Lobos
    ... The only odd thing is how creative this solution is. ... Here is another way to keep in touch with Turibio Santos. ... Mondays 4pm UTC, repeat broadcast 8pm UTC. ...
    (rec.music.classical.guitar)
  • Re: What a strange set of units...
    ... What's odd about UTC? ... The rest just represents the origins of flight in the US ...
    (rec.aviation.student)
  • Re: Get last write time bug!
    ... > If calling SetLastWriteTime with the value returned by GetLastWriteTime ... > changes the value, that defeinitely seems odd. ... In case of said above times that's all right with utc versions. ...
    (microsoft.public.dotnet.framework)
  • Re: TSPP board repair/modification
    ... That's odd. ... click on it here in google as I'm replying to this and open it up in a ... Prev by Date: ...
    (rec.games.pinball)
  • Re: conditional formating
    ... Hello Fred thanks for replying to my post ... more than two even or more than two odd numbers next to each other ... Best regards ... Prev by Date: ...
    (microsoft.public.access.formscoding)