파이썬 날짜, 시간 구하기
1. 패키지 import from datetime import datetime 2. 현재 날짜, 시간 구하기 from datetime import datetime # 현재 날짜, 시간 today = datetime.today() now = datetime.now() print(today) print(now) 2023-04-21 11:16:55.524655 2023-04-21 11:16:55.524661 3. 현재 날짜에서 각 요소 추출 # 현재 날짜에서 추출 year = now.year month = now.month day = now.day hour = now.hour min = now.minute sec = now.second microsec = now.microsecond print(year, mo..
Dev/Python
2023. 4. 21. 12:08
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 기본
- conda
- 가상환경
- No Babel
- 사업기회포착
- 날짜 시간 추출
- 창업
- youChat
- parsing error
- Format code on save
- 파이썬
- 맥
- 플러터
- flutter doctor
- Python
- 설치
- homebrew
- Flutter
- ChatGPT
- 플러터 오류
- 창업교육전문가
- Auto Formatting
- translaite
- M1
- 네이버실시간주식
- 기업가
- 기업가 정신
- 맥 실리콘
- 자질
- 창업지도사
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함