which method allows you to choose how to display the date and time? localtime() time() strftime() format()

which method allows you to choose how to display the date and time? localtime() time() strftime() format()

which method allows you to choose how to display the date and time? localtime() time() strftime() format()

Answer

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.

Answer:

C. strftime()