You can find the creation date of a csv file in Python by using the os and datetime modules. Here's an example code:
main.py417 chars14 lines
This code gets the creation time of the csv file using the os.path.getctime()
function, which returns the time of the file's creation in seconds since Epoch. Then it converts the creation time into a human-readable format using the datetime.datetime.fromtimestamp()
function. Finally, the code prints out the creation date of the file.
gistlibby LogSnag