Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5588 Zobrazení

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!!!

Avatar
Zrušit
Nejlepší odpověď

Hello Jinesh

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


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

Avatar
Zrušit
Nejlepší odpověď
sheet.write(3, 1, str(date.today()))

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 23
4344
2
bře 17
4631
3
čvn 25
8077
0
dub 24
1796
4
lis 23
5840