Welcome to the Treehouse Community
Looking to learn something new?
two's minute is 49, should be 30
supposed to use the replace function but dont know where im going wrong.
import datetime now = datetime.datetime.now() two = now.replace(hour=14) change = two.replace(minute=30)
Dan Johnson40,532 Points
replace returns a new
datetime object so you'll need to assign the last call to two again:
two = two.replace(minute=30)