티스토리 뷰

공부

[Python] time.time()

승가비 2022. 4. 30. 00:31
728x90
import time

time.time() # 1522049204.295597

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

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

[Python] requirements.txt (version)  (0) 2022.04.30
caller & callee  (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
댓글