Thread: timevar
View Single Post
  #8  
Old 05-02-2005, 07:11 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Velox Cruentus
seconds = (timevar*5)%60;
minutes = int((timevar*5)/60)%60;
hours = int((timevar*5)/(60*60))%24;
days = int((timevar*5)/(60*60*24));

I believe? I'm not sure. I did this pretty fast.
What do you suppose would happen if timevar incremented during the execution of your script?
Reply With Quote