Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Question about time stamp info stored in the file?

Question about time stamp info stored in the file?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuang Cao
    wrote on last edited by
    #1

    Hi, We need to acquire some research data in Europe with our software and then get the data sent over here (East coast US) for analysis. We tested to run the acquistion on a laptop with the time zone set to the place in Europe, but when burned/copied the data to a local-time-zone win2k machine, the time stamp got changed to the local time based on the difference of time zones. Since we want to keep the europe timestamp (or at lease being able to figure out that), I wonder how the time stamp info is stored in the file. Is there any existing function to simply get the local time of the file creation? I searched this forum and found the function SystemTimeToTzSpecificLocalTime(), but that would require us to tell the software that the data was acquired in a specific time zone, it would be the best if that time zone can be read out from the file directly. An interesting note, when we copied the burned file to a winnt machine, the time stamp was kept; when we copied the data from the winnt machine back to win2k, the time stamp was still kept, instead of getting swtiched based on local time zone. So somehow, the time zone info was lost when the file was copied to Winnt. Any explanations on this? Thanks a lot.

    W 1 Reply Last reply
    0
    • K Kuang Cao

      Hi, We need to acquire some research data in Europe with our software and then get the data sent over here (East coast US) for analysis. We tested to run the acquistion on a laptop with the time zone set to the place in Europe, but when burned/copied the data to a local-time-zone win2k machine, the time stamp got changed to the local time based on the difference of time zones. Since we want to keep the europe timestamp (or at lease being able to figure out that), I wonder how the time stamp info is stored in the file. Is there any existing function to simply get the local time of the file creation? I searched this forum and found the function SystemTimeToTzSpecificLocalTime(), but that would require us to tell the software that the data was acquired in a specific time zone, it would be the best if that time zone can be read out from the file directly. An interesting note, when we copied the burned file to a winnt machine, the time stamp was kept; when we copied the data from the winnt machine back to win2k, the time stamp was still kept, instead of getting swtiched based on local time zone. So somehow, the time zone info was lost when the file was copied to Winnt. Any explanations on this? Thanks a lot.

      W Offline
      W Offline
      WoutL
      wrote on last edited by
      #2

      About what kind of partitions are you talking? FAT or NTFS. Wout Louwers

      K 1 Reply Last reply
      0
      • W WoutL

        About what kind of partitions are you talking? FAT or NTFS. Wout Louwers

        K Offline
        K Offline
        Kuang Cao
        wrote on last edited by
        #3

        NTFS. And the CD used CDFS.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups