EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Chit-Chat

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:13 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI