Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#22

AW: Fehlerursache bei Datumsverlust

  Alt 21. Mär 2012, 22:38
Versuch:
Windows.GetSystemTime //Retrieves the current system date and time in UTC format.
Diese Zeit speichern in einer globalen Variablen.
Plausibilitätsprüfung:
Eine nachfolgende Zeitabfrage darf nicht kleiner sein als die Variable.

http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
.
Ausserdem:
All Microsoft Windows versions since Windows 2000 include the Windows Time Service,[5] which has the ability to sync the computer clock to an NTP server.
http://en.wikipedia.org/wiki/Network_Time_Protocol

Geändert von hathor (21. Mär 2012 um 23:09 Uhr)
  Mit Zitat antworten Zitat