Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : How to get "raw" GMT file stamp

www.cryer.info
Managed Newsgroup Archive

How to get "raw" GMT file stamp

Subject:How to get "raw" GMT file stamp
Posted by:"Andrew" (somebody@nospam.com)
Date:Wed, 30 Mar 2005 15:58:39

As you may know Win NT/2000/XP stores its file stamps as GTM regardless of
what time zone you are in and if you have daylight saving.  When you see the
date stamp it then adjusts it for the current time zone+daylight saving.

I am writing a program that stores a history of file stamps to compare to
current files.  The problem is when daylight saving comes on the current
file dates changes by an hour but my historic ones don't.  I could ignore an
hour difference but I think a more elegant solution is for me to store my
historic dates as GTM like the OS does.

So my question is how do I get the raw GMT date stamp of a file ?

And then a further question would be how do I adjust this to the current
time zone etc for nice display later ?

Thanks

Replies:

www.cryer.info
Managed Newsgroup Archive