OsLoadedCreationTime

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Change See Also)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=Low
|- valign="top"
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || Low
+
|delay=0
 +
|function_syntax=string osLoadedCreationTime()
 +
|description=*This function returns a string containing the time that a sim was first created.  An example of the string returned is "2:06:48 AM".
 +
* It will return empty string if the region hasn't been created by oar import, or the region uses SQLite for region database.
 +
|ossl_example=<source lang="lsl">
 +
//
 +
// osLoadedCreationTime Script Exemple
 +
// Author: djphil
 +
//
  
|- valign="top"
+
default
|'''Function Syntax''' || <source lang="lsl">
+
{
osLoadedCreationTime()
+
    state_entry()
</source>
+
    {
|- valign="top"
+
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationTime usage.");
|'''Example(s)||<source lang="lsl">
+
    }
//Example Usage:
+
  
default {
+
     touch_start(integer number)
     touch_start(integer num) {
+
    {
         string data = "\n\n Creation Date: " + osLoadedCreationDate();
+
         string CreationTime = osLoadedCreationTime();
         data += "\n Creation Time: " + osLoadedCreationTime();
+
          
         data += "\n Creation ID: " + osLoadedCreationID();
+
        if (CreationTime == "")
         llSay(0, data);
+
         {
 +
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
 +
         }
 +
 
 +
        else
 +
        {
 +
            llSay(PUBLIC_CHANNEL, "The first creation time is " + CreationTime);
 +
        }
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
 
+
|additional_info=
|}
+
}}
 
+
== See Also ==
This function returns a string containing the time that a sim was first created.  An example of the string returned is "2:06:48 AM".
+
* [[osLoadedCreationDate]]
 
+
* [[osLoadedCreationTime]]
[[Category:OSSL Functions]]
+
* [[osLoadedCreationID]]

Latest revision as of 19:13, 5 December 2020

string osLoadedCreationTime()
  • This function returns a string containing the time that a sim was first created. An example of the string returned is "2:06:48 AM".
  • It will return empty string if the region hasn't been created by oar import, or the region uses SQLite for region database.
Threat Level Low
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osLoadedCreationTime Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationTime usage.");
    }
 
    touch_start(integer number)
    {
        string CreationTime = osLoadedCreationTime();
 
        if (CreationTime == "")
        {
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
        }
 
        else
        {
            llSay(PUBLIC_CHANNEL, "The first creation time is " + CreationTime);
        }
    }
}


[edit] See Also

Personal tools
General
About This Wiki