OsLoadedCreationDate

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Change See Also)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{osslfunc|
+
{{osslfunc
threat_level = Low
+
|threat_level=Low
|
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
function_syntax = <source lang="lsl">
+
|delay=0
osLoadedCreationDate()
+
|function_syntax=string osLoadedCreationDate()
</source>
+
|description=*This function returns a string containing the date that a sim was first created.  An example of the string returned is "Monday, December 07, 2009".
|
+
* 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">
+
|ossl_example=<source lang="lsl">
//Example Usage:
+
//
 +
// osLoadedCreationDate Script Exemple
 +
// Author: djphil
 +
//
 +
 
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationDate usage.");
 +
    }
 +
 
 +
    touch_start(integer number)
 +
    {
 +
        string CreationDate = osLoadedCreationDate();
 +
       
 +
        if (CreationDate == "")
 +
        {
 +
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
 +
        }
  
default {
+
        else
    touch_start(integer num) {
+
        {
        string data = "\n\n Creation Date: " + osLoadedCreationDate();
+
            llSay(PUBLIC_CHANNEL, "The first creation date is " + CreationDate);
        data += "\n Creation Time: " + osLoadedCreationTime();
+
         }
         data += "\n Creation ID: " + osLoadedCreationID();
+
        llSay(0, data);
+
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|  
+
|additional_info=
additional_info = This function returns a string containing the date that a sim was first created.  An example of the string returned is "Monday, December 07, 2009".
+
|
+
 
}}
 
}}
 +
== See Also ==
 +
* [[osLoadedCreationDate]]
 +
* [[osLoadedCreationTime]]
 +
* [[osLoadedCreationID]]

Latest revision as of 20:12, 5 December 2020

string osLoadedCreationDate()
  • This function returns a string containing the date that a sim was first created. An example of the string returned is "Monday, December 07, 2009".
  • 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)
//
// osLoadedCreationDate Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationDate usage.");
    }
 
    touch_start(integer number)
    {
        string CreationDate = osLoadedCreationDate();
 
        if (CreationDate == "")
        {
            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 date is " + CreationDate);
        }
    }
}


[edit] See Also

Personal tools
General
About This Wiki