
| Current Path : /var/mail/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/mail/changetimestamp.py |
import os,re,sys,glob,datetime,time
dlist = glob.glob("*")
dlist.sort()
zaehler = 0
for file in dlist:
zaehler = zaehler + 1
try:
timest = int(file[0:10])
except:
continue
tt = datetime.datetime.fromtimestamp(timest)
tt1 = tt.strftime("%y%m%d%H%m")
os.system("touch -t " + tt1 + " " + file)
if zaehler % 1000 == 0:
print(zaehler,file)