Answers for "get month day year 12 hour time format python"

0

get month day year 12 hour time format python

import time

# get current time
date_time = time.strftime("%b %d, %Y %-I%p")

#the above outputs: May 27, 2021 7PM
Posted by: Guest on October-14-2021

Code answers related to "get month day year 12 hour time format python"

Python Answers by Framework

Browse Popular Code Answers by Language