What time is it?
Solutions
π Python
from datetime import *
#docs: https://www.programiz.com/python-programming/datetime/strptime
def get_military_time(str):
return datetime.strptime(str, "%I:%M:%S%p").strftime("%H:%M:%S")Last updated