Fix a typo of the prompt

It should have been 3/12/202, but it was 3/1/2002.
This commit is contained in:
Pt J 2023-07-20 00:22:27 +09:00 committed by GitHub
parent ab2aea9b43
commit f2c80c2405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ later = today + relativedelta(hours=24)
# The answer formatted with %m/%d/%Y is # The answer formatted with %m/%d/%Y is
today.strftime('%m/%d/%Y') today.strftime('%m/%d/%Y')
# Q: Jane thought today is 3/11/2002, but today is in fact Mar 12, which is 1 day later. What is the date 24 hours later in MM/DD/YYYY? # Q: Jane thought today is 3/11/2002, but today is in fact Mar 12, which is 1 day later. What is the date 24 hours later in MM/DD/YYYY?
# If Jane thought today is 3/11/2002, but today is in fact Mar 12, then today is 3/1/2002. # If Jane thought today is 3/11/2002, but today is in fact Mar 12, then today is 3/12/2002.
today = datetime(2002, 3, 12) today = datetime(2002, 3, 12)
# 24 hours later, # 24 hours later,
later = today + relativedelta(hours=24) later = today + relativedelta(hours=24)