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

    Hi, Im Looking for a local time check that i can use with my Suply Check... that go to label "exit" for example (6:30) a.m ...xD i want to leave resp before the SS
    thx since now

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local TIME = {FROM tosec("6:00"), TO tosec("6:30"), CURRENT tosec(time())}

    if (
    TIME.CURRENT >= TIME.FROM) and (TIME.CURRENT <= TIME.TOthen
        gotolabel
    ("logout")
    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
  •