Thread: How to code?
View Single Post
  #1510 (permalink)  
Old 12-20-2008, 08:00 PM
Roger09 Roger09 is offline
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 159
Roger09 is on a distinguished road
Wrong string:
Code:
currenttimeN = (timeH / 24) + (timeM / 1440);//gives the time of day as a percent or 1 (1 = one complete day) so always less than 1
could be:
Code:
currenttimeN = (timeH *60 + timeM) / 1440;
How can you compare part of day and price?
Reply With Quote