Results 1 to 2 of 2

Thread: Check Local time

  1. #1
    iBot User
    Join Date
    Sep 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    Exclamation Check Local time

    Ola,gostaria de um check do local time para por exemplo na hora do bot checkar se tem suply ele checar se esta perto do SS ex: (6:30)... e se sim ele ir para a Label "Sair"..
    Obrigado Desde já.

  2. #2
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    PHP Code:
    --[[
        
    Nameaction//
        
    Versionv1.0.0
        Status
    Working.
        
    AuthorSayild
    ]]--

    local HOUR_SS '6:55' -- Hour to off alarms
    local LABEL_TIME 
    "sair"


    -- Dont change below

    local ON 
    tosec(HOUR_SS)
    local CURRENT_TIME tosec(time())

    if 
    CURRENT_TIME >= ON then
        gotolabel
    (LABEL_TIME)
    end 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •