Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #month #day #year #hour #time #format #python
ADD COMMENT
Topic
Name
9+3 =