Python Forum
Getting Correct Creation Time
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Correct Creation Time
#1
Hey, guys,

Very much a beginner at coding.

I was trying to rename image files by extracting their creation date using the "os.path.getctime(path)" method, but I've run into a snag.

Using Windows...

I copied the files from an external drive to my laptop. In Explorer, the creation dates still display as when the images and video were actually created: 2012

When I use "os.path.getctime(path)" on any one of those files, the creation date returned is the date I copied the files to my laptop (which was yesterday).

Is there a different function (not sure if that's the correct terminology) that I should use to extract the date/time that's the same as what's being displayed in Explorer? The ACTUAL creation date?

Thanks!

John
Reply


Messages In This Thread
Getting Correct Creation Time - by JohnVogel - Aug-10-2020, 04:51 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-10-2020, 05:27 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-10-2020, 09:41 PM
RE: Getting Correct Creation Time - by Gribouillis - Aug-10-2020, 05:28 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-11-2020, 04:04 AM
RE: Getting Correct Creation Time - by JohnVogel - Aug-12-2020, 08:17 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-12-2020, 09:00 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-14-2020, 04:06 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-14-2020, 05:49 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-14-2020, 06:26 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-14-2020, 06:45 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-14-2020, 08:04 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-14-2020, 09:30 PM
RE: Getting Correct Creation Time - by bowlofred - Aug-14-2020, 10:21 PM
RE: Getting Correct Creation Time - by JohnVogel - Aug-17-2020, 03:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to acquire an imported file creation time thunderspeed 4 1,946 Sep-23-2021, 04:27 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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