filename = '' # туты имя файла пишешь
with open(filename, 'r', encoding='utf8') as f:
lines = f.readlines()
newlines = []
for data in lines:
data = data.split(';')
data[8] = data[8].replace(',', '.')
data = ';'.join(data)
newlines.append(data)
with open(filename, 'w') as f:
f.write(newlines)
offset = datetime.timezone(datetime.timedelta(hours=3)
def get_time(offset):
return datetime.datetime.now(offset)
print(get_time(offset))
#output:
#22:45