P15日期
datetime library —— datetime function
We often need current date and time when logging errors and saving data. We use datetime library to ask for current date and time. we use this a lot when we`re logging errors or saving records and databases.
There are functions you can use with datetime objects to manipulate dates.
from datetime import datetime
print(datetime.now())
timedalta needs features really make dates worthwhile
from datetime import datetime,timedelta
today=datetime.now()
print('Today is:'+str(today))
#timedalta is used to