[Python] 날짜 및 시간 함수 : datetime
날짜와 시간 함수를 이용하여 각 항목(년, 월, 일, 시, 분, 초, 요일)에 대한 값을 획득하기 위한 방법 def GetTimeParam(cls, timeIn=None): if not timeIn: timeIn = datetime.now() year1 = timeIn.strftime("%Y") month1 = timeIn.strftime("%m") day1 = timeIn.strftime("%d") hour1 = timeIn.strftime("%H") minute1 = timeIn.strftime("%M") weekDay = timeIn.weekday() rst1 = { 'Year': int(year1), 'Month': int(month1), 'Day': int(day1), 'Hour': int(ho..
SWDesk
2023. 8. 26. 16:14
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Innovations
- Decorator
- 전압
- Video
- Hurdles
- badp
- 빌리언트
- 치매방지
- Innovations&Hurdles
- bilient
- 전류
- arduino
- 절연형
- Innovation&Hurdles
- DYOV
- 심심풀이
- 혁신과허들
- 혁신
- 심심풀이치매방지기
- 둎
- 배프
- ServantClock
- 치매
- 허들
- 오블완
- 전압전류모니터링
- image
- BSC
- 티스토리챌린지
- 아두이노
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함