SLnode

From Second Life Wiki
Jump to navigation Jump to search

Links

Homepage http://slnode.com

Support Email im at ugleh dot com

SL Contact Ugleh Ulrik

Site Details

SLNode is a web service for parsing information for any complex or unique scripts need. We provide you with the 24/7 reliable domains for all your parsing needs, including other tools like name2key.

More Parsing Data coming soon, as for now SLNode is a new service and still needs to determine whats more needed. If anyone has an idea contact Ugleh Ulrik or submit a suggestion in the discussion section.


strtotime

strtotime

StrtoTime is a function in PHP that grabs the unixtime based off a string command.

On the URL you will see a q=. Replace the default "friday" with whatever day you want

Examples are as follows:

now

10 September 2000

+1 day

+1 week

+1 week 2 days 4 hours 2 seconds

next Thursday

last Monday

Warning: The Unix Timestamp timezone is PST and you will need to create your own timezone offset in your lsl script.


Script Example <lsl> key strtotime_request_id; strtotime(string command){ strtotime_request_id = llHTTPRequest("http://slnode.com/strtotime.php?q="+llEscapeURL(command), [], ""); }

default {

   state_entry()
   {
      strtotime("Thursday");
   }
http_response(key request_id, integer status, list metadata, string body)
   {
       if (request_id == strtotime_request_id)
       {
           //This is the Unix Timestamp which returns 12 am Thursday PST
          llOwnerSay(body);
       }
   }

} </lsl>