6/24/2023 0 Comments Windows dynamic wallpaper![]() ) as well as current time ( 3.We do not log in to our system at the exact same time, every day). 5:The time of sunrise is not constant throughout the year. ![]() n = startSecQ0 while n < int(val) 1: path = "C:\\Users\\amlan\\Desktop\\mojave\\wp" str(n) ".jpg" y = () print(path,y) (20,0,path,0) time.sleep(int(num)) n=int(n) 1 if n = int(val) 1: n = 1Īllow me to give a brief explanation of my code.įirst I import datetime module to extract the present month ( point no. So, keeping these things to our mind, I wrote this code in Python: import datetime,ctypes, time x = () #CURRENT TIME CH=int(x.strftime("%H")) CM=int(x.strftime("%M")) CS=int(x.strftime("%S")) CMonth = int(x.strftime("%m")) #Starting Hr Calculation if CMonth =9: startH = 2 else: startH = 3 #TIME FROM Starting Hour if CH >= startH: calH = CH-startH else: calH = CH 24-startH upSec = calH*3600 CM*60 CS startSec = int(upSec//169.4) print(startSec) val = 510 num = 169.
0 Comments
Leave a Reply. |