Hi guys,
I'm trying to write my first little program... I tell python the number of minutes i want it to shutdown/hibernate my computer and it will add that to the current time and perform the necessary action. However I'm really struggling to add the number of minutes to the current time. Can anyone offer me any help?? Here what I got so far... I'm using python 3 RC1 incase your wondering
import time
t = time.strftime('%H:%M')
print ('Current time:', t)
i = input("Minutes till shutdown: ")
print (time.strftime('%H:%M', time.localtime(t + i * 60)))