I would like to convert a variable $uptime which is seconds, into days, hours, minutes and seconds.
$uptime
Example:
a=int(input("Enter your number by seconds ")) d=a//(24*3600) #Days h=a//(60*60)%24 #hours m=a//60%60 #minutes s=a%60 #seconds print("Days ",d,"hours ",h,"minutes ",m,"seconds ",s)