Вы можете попробовать следующее:
$ mysql -u root -p
> grant all privileges on *.* to `root`@`%` identified by 'password';
> flush privileges;
import os
filename = "/etc/fstab"
statbuf = os.stat(filename)
print("Modification time: {}".format(statbuf.st_mtime))
Linux не записывает время создания файла ( для большей части fileystems).
>>> import os
>>> f = os.path.getmtime('test1.jpg')
>>> f
1223995325.0
с начала (эпохи)