コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5462 ビュー

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
4241
2
3月 17
4509
3
6月 25
7949
0
4月 24
1716
4
11月 23
5714