osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stuck on time


On 12/7/2019 1:56 PM, RobH wrote:

>>> ??????? current_time = time.strftime("%I:%M")<<< stays at this line
>> in an interactive Python interpreter ?

In IDLE on Windows with 3.7 and 3.9, time.strftime runs fine.

 >>> import time
 >>> time.strftime("%I:%M")
'11:48'
 >>> current_time = time.strftime("%I:%M")
 >>> current_time
'11:48'

-- 
Terry Jan Reedy