QUESTION IMAGE
Question
which method allows you to choose how to display the date and time? localtime() time() strftime() format()
Brief Explanations
The strftime() function is used in programming languages like Python to format date - time objects into a string representation according to a specified format. localtime() gets the local time as a struct_time object. time() returns the number of seconds since the epoch. format() is a more general - purpose string formatting method and not specifically for date - time display formatting.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. strftime()