............./PARTIAL SNIP/............. >>>>>>>>>>converting number of minutes into /hours # of mins in an hour = 60 /days # of minutes in a day = 1440 /weeks # of minutes in a week = 10080 /monthes # of minutes in a month Feb non leap = 282240 Apr, June, Sept, Nov, = 302400 Jan, Mar, May, July, August, Oct, Dec = 312480 /years # of minutes in a year = 525600 and add 1440 to this for leap year.
............/End Partial SNIP/............... Now the equation If you have 10999 mins, lets call them apples and you do the equation as follows: 10999 - 10080 = 919 mins, there's one week 919 / 60 = 15 (.3166666666...etc) (15 * 60 = 900 makes 19 minutes left over) SO the # of slices from your apples = 1 Week / 15 Hours / 19 Minutes..... Wow, your "right" that was hard, not sure what I would have done with out my "calculator", but again if your having trouble and finding this too dificult to understand, By all means let me know and I'll help ya. BTW, I'm a newbie at php, but the math, I think I learned that in 4th or 5th grade, I forget (**Where's my diary?**). '<?php print LOL; ?>' :) Besides, if you can write the equation in "if" statements you can do the math to check your work. There's your 2nd "human" opinion. Good luck. .:TIME:. 9.67 minutes! Boy the human brain can't be beat, Life is great. Sorry that was the smart ass in me comin out. :) ENJOY the apples! -----Original Message----- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 12:40 AM To: PHP4 Emailer Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Will this work right? Unfortunatley, an equation to do what this script does would be as hard to come up with, and as likely not to work. That's why I want a second (human) opinion. PHP4 Emailer wrote: >I'm gonna go out on a limb here, but isn't that why the "human brain" made >calculators? ;) > >Good luck with the buttons, if you need help let me know. :) > -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php