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!!!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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()))
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 6 23
|
4240 | ||
|
2
thg 3 17
|
4505 | ||
|
3
thg 6 25
|
7947 | ||
|
0
thg 4 24
|
1713 | ||
|
4
thg 11 23
|
5703 |