-
Python datetimeProgramming Language/Python3 2021. 10. 25. 17:58
stackoverflow how-to-get-current-time-in-python-and-break-up-into-year-month-day-hour-minu
Conclusion
import datetime now = datetime.datetime.now() print(now.year, now.month, now.day, now.hour, now.minute, now.second) # 2015 5 6 8 53 40
Related
'Programming Language > Python3' 카테고리의 다른 글
Should `import` statements always at the top? (0) 2021.10.25 전역 상수는 나쁜 것일까? (0) 2021.10.25 Python Define Constants (0) 2021.10.25 Python append item without duplicates (0) 2021.10.25 Python 2d list to 1d (0) 2021.10.25