Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Time compare using UTC

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Hi Guys,

I am trying to compare the date and time of some files based on the time zone.

For example, I keep track of release versions of certain files via a text file called File_releases.txt (see sample below). The date and times of these files are in Australia, Brisbane (GMT +10).

File_releases.txt
---------------------------------------------
INSTALL.EXE : 12:46 pm Fri 08 Jul 2005
INSTALL.DLL : 10:05 am Wed 04 May 2005
...
...
---------------------------------------------

Now, lets say I send these files to someone in the USA (GMT -6). How can I verify that these files have the same date & time as what I have in this File_releases.txt?

Basically I need to verify that the files they have are the SAME date and time as what I have sent them.

I have tried using the function FileTimeToLocalFileTime and
also tried using using the TTimeZoneInformation object but can't seem to get my head around this.

Thx.

_______________________________
There's no place like 127.0.0.1
_______________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top