Python Forum
xml "creation date"; different time reported for same file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xml "creation date"; different time reported for same file
#1
I'm up against something I can't explain:
the xml "creation date/time" has different values depending what utility is viewing it. For example the Mac finder will show it accurately, but an on-line viewer, or Adobe "Bridge" might show a different value that's way off... any thoughts?
Reply
#2
What's in the actual file? Maybe it's a time zone thing, but until you look, you won't know.
Reply
#3
It happens with .mp3 and .mov files. I've confirmed time zone & internal clock of the recording device. I've re-formated cards & upgraded firmware. I've been on the phone with Sony multiple times. The time stamp is reported differently between finder window, Bridge, and www.get-metadata.com. The finder is accurate(IMac)... the others display random times in the future by a few hours.
Reply
#4
Try this, and see what python says about it:
import datetime
import os

stat = os.stat("your-file.xml")
created = datetime.datetime.fromtimestamp(stat.st_ctime)
print(created)
Reply
#5
thanks!...I'll give it a try...
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020