跳至内容
菜单
此问题已终结
2 回复
5609 查看

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()))

形象
丢弃
相关帖文 回复 查看 活动
2
6月 23
4362
2
3月 17
4641
3
6月 25
8107
0
4月 24
1820
4
11月 23
5854