Ross Levis wrote:
> The recent daylight savings change in the US has highlighted a problem in my
> program.  I need to detect if a file has changed since it was loaded.  I'm
> doing that by storing the modified date/time of the file when it is loaded
> and checking the file date/time every few seconds.
> 
> Windows physically stores the date/time of files in GMT (I believe) and
> applies the time zone offset when reading the date/time via API calls.

NTFS uses UTC; FAT uses local time.

> Does anyone know if there is an API call that retrieves the raw (GMT)
> date/time without it being converted to the current locale?

GetFileTime or FindFirstFile.

http://msdn2.microsoft.com/en-us/library/ms724290.aspx

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to