Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5587 Представления

Hello,

I want to write current datetime in excel report using pythons xlwt package.

But it shows the time in UTC format rather than my local timezone. So please help me to solve this problem.

Thanks in advance for your help!!!

Аватар
Отменить
Лучший ответ

Hello Jinesh

you can use below code for get current datetime in excel report.


datetime.strftime(datetime.now(), "%d-%m-%Y")

Аватар
Отменить
Лучший ответ
sheet.write(3, 1, str(date.today()))

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
июн. 23
4343
2
мар. 17
4631
3
июн. 25
8077
0
апр. 24
1796
4
нояб. 23
5840