I created 4 test-files on Windows and MacOS-Machines
with the system-time set to the 01.01. and to the 01.05.2006:

  "Mac Winter 18.52.rtf" means:
  - File created on a mac
  - At "Winterzeit" (01.01.2006)
  - At 18:52

  "Win Sommer 18.27.txt" means:
  - File created on a Windows-Machine
  - At "Sommerzeit" (01.05.2006)
  - At 18:27

Then I ran the following statements on both machines with different system-time-settings:

theFile.Name+" "+Format(theFile.ModificationDate.TotalSeconds, "#")+" "+theFile.ModificationDate.YYYYMMDDHHMISS+" "+Format (theFile.ModificationDate.GMTOffset, "+#")

Macintosh, 01.01.2006, "Winterzeit"
=================================================
Mac Winter 18.52.rtf 3218986340 20060101185220 +1
Mac Sommer 18.53.rtf 3229354390 20060501185310 +1
Win Sommer 18.27.txt 3229356432 20060501192712 +1
Win Winter 18.28.txt 3218984896 20060101182816 +1

Macintosh, 01.05.2006, "Sommerzeit"
=================================================
Mac Winter 18.52.rtf 3218982740 20060101175220 +2
Mac Sommer 18.53.rtf 3229350790 20060501175310 +2
Win Sommer 18.27.txt 3229352832 20060501182712 +2
Win Winter 18.28.txt 3218981296 20060101172816 +2

Windows, 01.01.2006, "Winterzeit"
=================================================
Mac Winter 18.52.rtf 3218986340 20060101185220 +1
Mac Sommer 18.53.rtf 3229350790 20060501175310 +1
Win Sommer 18.27.txt 3229352832 20060501182712 +1
Win Winter 18.28.txt 3218984896 20060101182816 +1

Windows, 01.05.2006, "Sommerzeit"
=================================================
Mac Winter 18.52.rtf 3218986340 20060101185220 +1
Mac Sommer 18.53.rtf 3229350790 20060501175310 +1
Win Sommer 18.27.txt 3229352832 20060501182712 +1
Win Winter 18.28.txt 3218984896 20060101182816 +1


Any Ideas how I can compare those file-dates???

Thanks,
Jochen

===

Yes! Both computers shows the same time. The Mac is set to "CEST, Berlin" and the Windows-Machine is set to "Daylight Time, Berlin" (hopefully the same). Both machines are getting the actual time from a time server

Is that problem in any way related to RB? Or happens that to any file you modify on your PC or your Mac?

And if you have access to both computers: couldn't you just modify a file while watching the clock on your wall and on your PC/Mac and then compare these dates with the file's modified date?

And if that problem is related to RB (you didn't specify your version): In RB2006r1 a (somewhat misnamed) property GMTOffset was added "secretly" to the date class. So I could be possible that when creating a date the local time might be wrong on the PC. But why only for the modification date? Do you change the GMTOffset value anywhere?

Hans-Georg



        ...
Are both the Mac and the PC showing the same time?

   Yes! Both computers shows the same time. The Mac is set to "CEST,
   Berlin" and the Windows-Machine is set to "Daylight Time,
   Berlin" (hopefully the same). Both machines are getting the actual
   time from a time server.

As I recall, most versions of Windows (possibly changed in XP) store
file times in local time.  These need to be converted according to
some bizarre algorithm.

The Mac - and all Unix systems - store times in GMT and convert for
display.

Craig

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to