Computer Science, asked by apostlesscroll, 11 months ago

What is returned by datetime(1970, 1, 1).strftime('%Y-%d-%B') in Python?

Answers

Answered by brainlyinuser
12

Answer:

Explanation:

Usually, an exception complaining about invalid syntax is returned by the date time (1970, 1, 1).strftime ('%Y-%d-%B') in Python.

The datetime.datetime(1970, 1, 1) creates the object of class datetime which is instantiated with date 1970/1/1.The strftime method which is called for the purpose, results in the specific printout of date(time).    import datetime, print(datetime.date(1970, 1, 1).strftime('%Y-%d-%B')).

Similar questions