티스토리 뷰

Language/Python

python yyyy-mm-ddThh:mm:ss

KyeongRok Kim 2018. 5. 2. 18:01

python yyyy-mm-ddThh:mm:ss


1
2
3
4
5
6
7
import datetime
now = datetime.datetime.now()
print(now)
 
format_iso_now = now.isoformat()
 
print(format_iso_now)
cs


result

2018-05-02 18:00:18.490057

2018-05-02T18:00:18.490057 


end.



728x90
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함