Computer Science, asked by johnsuluku4, 1 year ago

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

Answers

Answered by ankurbadani84
5

Answer:

1970-01-Jan

Explanation:

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

Datetime will instance of object of class datetime.

strftime is use for display in Python.

You need to import datetime method.

Y - > Year in syntax

d - > Day in syntax

B - > Month in syntax

This will result in ==> 1970-01-Jan

Similar questions