-
[python] 날짜 포맷 이모저모공부 이야기/그냥 찾아보는 공부 2024. 3. 28. 14:15
current_time = datetime.now()
yyyy-MM-dd HH:mm:ss 형식으로 반환
current_time = datetime.now(pytz.timezone('Asia/Tokyo'))
2023-01-01T00:00:00+09:00 처럼 뒤에 09:00가 붙음
.strftime("%Y-%m-%dT%H:%M:%S%z")
now() 메소드로 반환된 값에 대해 포맷 처리를 해줘야 함
'공부 이야기 > 그냥 찾아보는 공부' 카테고리의 다른 글
[JS] Closure란? (0) 2024.09.15 ubuntu 명령어 모음 (0) 2024.04.26 [python] gradio -> UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 2072: illegal multibyte sequence 에러 해결 방법 (0) 2024.03.27 Webhook이란? (0) 2024.03.25 Data Pipeline orchestator Apache AirFlow (0) 2024.02.13