Answers for "python get current time in hours minutes and seconds"

0

print current time hours and minutes in python

import datetime
currentime = datetime.datetime.now()
time = currentime.strftime('%H:%M')
print(time)
Posted by: Guest on December-08-2021
1

python get current time in hours minutes and seconds

import datetime
currentime = datetime.datetime.now()
hours = currentime.strftime('%H')
minutes = currentime.strftime('%M')
seconds = currentime.strftime('%S')
mixed = currentime.strftime('%H:%M:%S')
Posted by: Guest on April-27-2022

Code answers related to "python get current time in hours minutes and seconds"

Python Answers by Framework

Browse Popular Code Answers by Language