Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: FileYMDHMS Time Stamp Change Different Daylight Savings
Explorer = 03/06/2013 4:22:00 FileYMDHMS = 03/06/2013 5:22:00 (2013:03:06:17:22:00) DOS = 03/06/2013 5:22:00Details:
WinBatch 2012B Windows server 2008 R2 Local time setting: Eastern Daylight Savings TimeIt would appear that both DOS and FileYMDHMS are converting the date using the systems local time settings, where as Explorer does not. I would like to update the documentation for FileYMDHMS to make note of this, but wanted to confirm with you first.
Affected functions:
The NTFS file system used by recent versions of Windows stores the file with a UTC time stamp, but displays it corrected to local—or seasonal—time. However, the FAT filesystem commonly used on removable devices stores only the local time. Consequently, when a file is copied from the hard disk onto separate media, its time will be set to the current local time. If the time adjustment is changed, perhaps automatically (daylight saving) or if the user selects a different time zone, then when the timestamps of the original file and the copy are compared there will be a difference. This may be verified (without having to wait for the next equinox) by copying a file, removing the media, adjusting the time zone options, reconnecting the media, and viewing the details of the file and its copy. The same effect can be observed when compressing and uncompressing files with some file archivers. It is the NTFS file that changes seen time. One can store a file listing and check it after the DST change. This effect should be kept in mind when trying to determine if a file is a duplicate of another although there are other methods of comparing files for equality like using checksum algorithms. See FileCompare().
Article ID: W18302
Filename: Time Stamp Changes with Daylight Savings.txt
File Created: 2013:03:20:10:56:06
Last Updated: 2013:03:20:10:56:06