Jak odejmować minuty od czasu w Python
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=0, hours=0, minutes=0)
Python in LatEx :P
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=0, hours=0, minutes=0)
# import datetime module
from datetime import datetime,timedelta
currentTimeDate = datetime.now() - relativedelta(minutes=5)
currentTime = currentTimeDate.strftime('%H:%M:%S')
print(currentTime)
//Output:
16:41:25