Raised This Month: $ Target: $400
 0% 

[ Solved ] While ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2012 , 16:37   Re: While ?
Reply With Quote #8

Quote:
Originally Posted by <VeCo> View Post
PHP Code:
seconds 60 // returns seconds
seconds 60 // returns minutes
seconds 60 60 // returns hours 
If the time is actually 1 hour 15 minutes and 32 seconds your code will return 1 hour 75 minutes and 32 seconds. That is OK if you are not going to only use minutes and seconds but not if you want to use all three.

This is the correct method when wanting to use days, hours, minutes, and seconds (days can easily be omitted):

PHP Code:
        iDays iTimeLeft 86400
        iHours 
iTimeLeft 86400 3600
        iMinutes 
iTimeLeft 3600 60
        iSeconds 
iTimeLeft 60 
__________________

Last edited by fysiks; 05-13-2012 at 16:37.
fysiks is offline
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode