티스토리 뷰

공부

[Python] datetime, timestamp

승가비 2021. 1. 14. 07:21
728x90
import time

print(time.time())

https://inma.tistory.com/96

 

[Python] datetime, timestamp 변환

timestamp 만들기 timestamp = 초 * 분 * 시 * 일 timestamp = 60 * 60 * 24 * 30 print(timestamp) # 2592000 str 으로 변환 timestamp ➠ str import time timestamp = time.time() s = str(timestamp) print(s)..

inma.tistory.com

 

728x90

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

[Chart.js] make chart image  (0) 2021.01.14
[Slack] send image  (0) 2021.01.14
[Java] URLEncode  (0) 2021.01.14
[PHP] join -> implode; split -> explode  (0) 2021.01.14
[PHP] str_replace("a", "b" "abc") -> "bbc"  (0) 2021.01.14
댓글