I know, it is old question. Is there some new way to protect system
time changes with C# 2.0?
What is the best way based on your oppinion?
Thanks, I appreciate your help.
Mike
I don't think this is possible. System clock change is an OS function (or
even BIOS) and C# (or rather the .Net framework) runs on top of the OS.
I don't think it's possible to prevent the OS from doing something, as this
would also mean that your application needs to be running the whole time.
But maybe you can contact a timeserver (NTP protocol) to see if the local
time differs from "real time" (but remember to adjust for timezones and
daylight savings time - use UTC?). However, this requires internet access.
Hans Kesting