콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5530 화면

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
4280
2
3월 17
4576
3
6월 25
8005
0
4월 24
1754
4
11월 23
5795