Answers for "how to assign hours and min to a datetime variable in python"

2

how to rewrite minute in datetime python

from datetime import datetime
date = datetime.strptime('26 Sep 2012', '%d %b %Y')
newdate = date.replace(hour=11, minute=59)
Posted by: Guest on October-01-2020

Code answers related to "how to assign hours and min to a datetime variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language