keyongtech


  keyongtech > windowsxp.* > windowsxp.general > 05/2006

 #16  
03-28-06, 05:09 PM
David Candy
But a non faulty program can still do that. The time hasn't changed. She is only seeing what explorer interprets the time as.
There are five time formats. Time-related functions return time in one of these formats. You can also use the time functions to convert between time formats for ease of comparison and display. The following table summarizes the time formats.

Format Type Description
System SYSTEMTIME Year, month, day, hour, second, and millisecond, taken from the internal hardware clock.
File FILETIME 100-nanosecond intervals since January 1, 1601.
Local SYSTEMTIME or FILETIME A system time or file time converted to the system's local time zone.
MS-DOS WORD A packed word for the date, another for the time.
Windows DWORD The number of milliseconds since the system booted; a quantity that cycles every 49.7 days.

File Times and Daylight Saving Time
You must take care using file times if the user has set the system to automatically adjust for daylight saving time.

To convert a file time to local time, use the FileTimeToLocalFileTime function. However, FileTimeToLocalFileTime uses the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, it will take daylight saving time into account, even if the file time you are converting is in standard time.

FAT records times on disk in local time. GetFileTime retrieves cached UTC times from FAT. When it becomes daylight saving time, the time retrieved by GetFileTime will be off an hour, because the cache has not been updated. When you restart the machine, the cached time retrieved by GetFileTime will be correct. FindFirstFile retrieves the local time from FAT and converts it to UTC using the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, FindFirstFile will take daylight saving time into account, even if the file time you are converting is in standard time.

NTFS records times on disk in UTC. To account for daylight saving time when converting a file time to a local time, use the following functions instead of FileTimeToLocalFileTime:

1.. FileTimeToSystemTime
2.. SystemTimeToTzSpecificLocalTime
3.. SystemTimeToFileTime
 #17  
03-28-06, 05:17 PM
David Candy
How do you do the comparision?
 #18  
03-28-06, 06:01 PM
David Candy
Not really. I backup by remembering what is and isn't already backed up.

Change your clock while doing it. Why is this not simple and effective. Change time, do comparision, change time back.

Can xcopy handle it. Type xcopy in Help.

xcopy "c:\My Documents\" "\\laptop\my documents" /d /s /l /h /r

(/l makes it into a test of what would happen so you can see if it works without copying files)

MS has a thing called Synchtoy that sounds typically over engineered. I haven't seen it. It may suit you
http://www.microsoft.com/downloads/d...DisplayLang=en
 #19  
03-28-06, 07:38 PM
Wolf Kirchmeir
David Candy wrote:
> But a non faulty program can still do that. The time hasn't changed. She
> is only seeing what explorer interprets the time as.

[snip page explaining stuff]

Thanks for that.
 #20  
03-28-06, 09:03 PM
Dave
Have you considered SyncToy to sync your files?



"Patricia Hunter" <PatriciaHunter> wrote in
message news:6732
[..]
 #21  
05-05-06, 05:37 PM
Shengwen Zhang
Oh boy, not worth to abandon XP for this problem. Win2000 has the same
issue, which gives me constant headache!

Though I have a related but different issue with XP. I don't check the box
"Automatically adjust clock for daylight savings changes" because my data
analyzing programs are not uniformly handle this daylight savings time
stamps, causing misalignment. So I manually change the time to current local
time on all the computers when the savings time starts and ends. But one of
my XP changes back one hour every few days. Since I did not install this
computer myself, I suspect these is some other program installed on the PC
that syncs internet time and reverts to standard time. (BTW, my time zone
setting is correct.) Can anyone tell me how to find the evil program? Many
thanks!

"Wolf Kirchmeir" wrote:
[..]
 #22  
05-06-06, 06:57 AM
Admiral Q
"Shengwen Zhang" <Shengwen Zhang> wrote in message
news:8635
> Oh boy, not worth to abandon XP for this problem. Win2000 has the same
> issue, which gives me constant headache!
>
> Though I have a related but different issue with XP. I don't check the
> box
> "Automatically adjust clock for daylight savings changes" because my data
> analyzing programs are not uniformly handle this daylight savings time
> stamps, causing misalignment. So I manually change the time to current
> local
> time on all the computers when the savings time starts and ends. But one
> of
> my XP changes back one hour every few days. Since I did not install this
> computer myself, I suspect these is some other program installed on the PC
> that syncs internet time and reverts to standard time. (BTW, my time zone
> setting is correct.) Can anyone tell me how to find the evil program?
> Many
> thanks!
>
> "Wolf Kirchmeir" wrote:



If you don't have the box checked, it will revert to standard time versus
savings time.
 #23  
05-07-06, 12:58 AM
Shengwen Zhang
Yes, but it will only happen when the computer is synchronized somehow, and I
need to find what program is doing that and how to get ride of it.

"Admiral Q" wrote:
[..]
 #24  
05-07-06, 01:25 AM
George \(Bindar Dundat\)
Did you double click on your system clock and go to the Internet Time Tab?
Is Automatically Synchronize............ checked?
 #25  
05-07-06, 02:45 AM
Shengwen Zhang
Oh My God!

I swear I unchecked it... Just asked my 10-year-old son and he said he
checked it a few weeks ago. I guess we need better communication around the
house... Thanks a bunch!

Shengwen

"George (Bindar Dundat)" wrote:
[..]
 #26  
05-07-06, 03:27 AM
Plato
=?Utf-8?B?U2hlbmd3ZW4gWmhhbmc=?= wrote:
>
> I swear I unchecked it... Just asked my 10-year-old son and he said he
> checked it a few weeks ago. I guess we need better communication around the
> house... Thanks a bunch!


Better password protect that router before you find a half dozen ports
have been opened up at the suggestion of some hacker's game site :)
 #27  
05-07-06, 03:50 AM
George \(Bindar Dundat\)
You're welcome
 #28  
05-07-06, 08:32 PM
Shengwen Zhang
Thanks for the suggestion. I used to set him up as "user" instead of
"administrator" (XP doesn't give as many choices as Win2000), but he couldn't
play his favorite games.

"Plato" wrote:

Similar Threads
daylight savings time change

can anyone provide or direct to a source for instructions for the fix for time change for windows millenium edition. Note, I am not very computer literate. I also use...

Daylight Savings Time Change

With automatic updates set, will the update for Windows XP mentioned in KB931836 be included or do I need to download & install it separately? Thank you.

Daylight Savings Time change

Good morning all, Does anyone have a concise list of what needs to be applied to SBS 2003 R2 Premium to accommodate this change? [..] TIA, SusanV

AIX 5.2 vs Daylight Savings time change-

HI! We're using AIX 52-007 on an older box that's been out of firmware update for a while although it runs fine. To compensate for the daylight savings time change coming...

Daylight Savings Time Change

When I turned on my pc this morning I realized that my "adjust for daylight savings time" option was not checked off in outlook calendar options. However, when I check that...


All times are GMT. The time now is 03:45 AM. | Privacy Policy