View Single Post
  #5  
Unread 04-05-2009, 10:20 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Not sure where you go wrong reading his code, but since I started responding I might as well give you a quick explanation: he's flooring the time divided by seconds, minutes and 24 hours, so yeah it's converted to full days. Then he's calculating the difference in days between his start date and the current date and putting the resulting difference in days into $check_time, on which he is then performing a modulus operation with respect to the 19 array elements to determine how many days we are into the current 19 day cycle. Mathematically the result of that can never be greater than 18.

PS: Disclaimer: I've got nothing to do with the code in the OP, hope Drums you don't mind that I'm explaining your code...
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 04-05-2009 at 10:24 AM.
Reply With Quote