os.stat returns st_mtime and st_ctime attributes, the modification time is st_mtime and st_ctime \"change time\" on POSIX. is there any function that return the creation tim
You might explain why you want to do this.
An indirect solution might be to use some revision control system (a.k.a. version control system = VCS) to manage the files whose birth time is needed.
So you could use git on such files (i.e. handle them as "source code"). Then you know not only when they have been created (in fact registered in the VCS using git add), but why, by whom, what for, etc... Use git log to get all this...
Of course you somehow need to educate your users to use a VCS like git