티스토리 뷰
공부
[python] time.time(), time.gmtime(), datetime.now(), datetime.now().timestamp()
승가비 2022. 8. 11. 00:52728x90
import time
ts = time.time()
print(ts) # 1594819641.9622827
import datetime;
ct = datetime.datetime.now()
print(ct) # 2020-07-15 14:30:26.159446
ts = ct.timestamp()
print(ts) # 1594823426.159446
import time;
gmt = time.gmtime()
print(gmt) # time.struct_time(tm_year=2020, tm_mon=7, tm_mday=15, tm_hour=19, tm_min=21, tm_sec=6, tm_wday=2, tm_yday=197, tm_isdst=0)
https://www.geeksforgeeks.org/get-current-timestamp-using-python/
Get current timestamp using Python - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
728x90
'공부' 카테고리의 다른 글
[kotlin] map -> flatMap (0) | 2022.08.11 |
---|---|
Spring Webflux + JDBC(혹은 blocking call) 핸들링 방법 (0) | 2022.08.11 |
[JUnit] @Disabled (as-is @Ignore) (0) | 2022.08.11 |
[Java] map -> properties `putAll` (0) | 2022.08.11 |
[kotlin] if not in (!in) (0) | 2022.08.11 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 연애학개론
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드
- 테슬라 리퍼럴 코드 생성
- 할인
- 책그림
- 테슬라 레퍼럴 코드 확인
- wlw
- 인스타그램
- Kluge
- 유투브
- 팔로워 수 세기
- 김달
- follower
- Bot
- 테슬라 추천
- 클루지
- 테슬라 크레딧 사용
- 레퍼럴
- 어떻게 능력을 보여줄 것인가?
- 테슬라
- 모델 Y 레퍼럴
- 모델y
- 개리마커스
- 테슬라 리퍼럴 코드 혜택
- 테슬라 레퍼럴 적용 확인
- COUNT
- 메디파크 내과 전문의 의학박사 김영수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함