Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Datetime module in Python Write a program in python to return the following outputs using the python datetime module- 1. Current date and time 2.

image text in transcribed

Datetime module in Python Write a program in python to return the following outputs using the python datetime module- 1. Current date and time 2. Current year 3. Current Month 4. Print date after x days from today Example-Output,for 2021-01-09 and timedelta =50 Present date and time : 2021-01-09 02:16:24.720615 Present year: 2021 Present month : January Enter the No of days: 50 Date after x number of days: 2021-02-28 02:16:28.163210

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions