Raised This Month: $ Target: $400
 0% 

get Day / Night


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 12-25-2014 , 15:22   get Day / Night
Reply With Quote #1

Hello, im wondering if is this code good to get Night hours ? and does this can use to much CPU usage?

PHP Code:

public plugin_init()
{
    static 
Hour[64], bool:Night;

    
get_time("%H"Hour63);
    
    if (
Hour[0] == '0')
        
Night true;

    else
        
Night false
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
 



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 15:22.


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