티스토리 뷰

728x90
import datetime
import pytz

# yyyy-MM-dd HH:mm:ss.SSSZ
# yyyy-MM-dd HH:mm:ss.SSS+00:00

# yyyy-MM-dd HH:mm:ss.SSSSSSZ
# yyyy-MM-dd HH:mm:ss.SSSSSS+00:00

# 2017-03-16T11:08:12.216857+00:00
print(str(datetime.datetime.now(tz=pytz.utc).isoformat()))

https://twpower.github.io/29-iso8601-utc-and-python-example

 

[ISO] ISO 8601과 UTC 그리고 python 예제

Practice makes perfect!

twpower.github.io

https://java119.tistory.com/24

 

[ISO] ISO 8601 개념

ISO 날짜 형식이란? 정식 명칭 Date elements and interchange formats - Information interchange - Representation of dates and times 미쳤다.. 현재 제일 최신 버전 ISO 8601 구버전 IS..

java119.tistory.com

https://stackoverflow.com/questions/31477309/timestamp-in-iso-8601-the-last-6-digits-yyyy-mm-ddthhmmss

 

Timestamp in ISO 8601 - the last 6 digits yyyy-MM-dd'T'HH:mm:ss.?

I have timestamps looking like this: 2015-03-21T11:08:14.859831 2015-03-21T11:07:22.956087 I read a Wiki article on ISO 8601, but did not get the meaning of the last 6 digits here. I tried

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

caller & callee  (0) 2022.04.30
[Python] time.time()  (0) 2022.04.30
[ISO 8601] Time format (precision not fixed)  (0) 2022.04.30
[Airflow] Variables api  (0) 2022.04.30
[Python] MacOSX M1 install pandas  (0) 2022.04.30
[Python] for k, v in map.items()  (0) 2022.04.30
댓글
댓글쓰기 폼