You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script to correct file timestamp. Spreadsheet must be have no headers and include full path to file in first column and desired file timestamp in second, in format YYYY-MM-DD HH:MM:SS
'''
import datetime
import openpyxl
import os
import time
book = input('Enter Python-appropriate path to spreadsheet: ')
wb = openpyxl.load_workbook(book)
ws = wb['Sheet1']
iterrows = ws.iter_rows()
for row in iterrows:
target = row[0].value
date = datetime.datetime.strptime(str(row[1].value), '%Y-%m-%d %H:%M:%S')