OsLoadedCreationTime
From OpenSimulator
(Difference between revisions)
m (XEngine to OSSL) |
m (Change See Also) |
||
(3 intermediate revisions by one user not shown) | |||
Line 4: | Line 4: | ||
|delay=0 | |delay=0 | ||
|function_syntax=string osLoadedCreationTime() | |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"> | |ossl_example=<source lang="lsl"> | ||
− | // | + | // |
+ | // osLoadedCreationTime Script Exemple | ||
+ | // Author: djphil | ||
+ | // | ||
− | default { | + | 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); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | |additional_info= | ||
}} | }} | ||
+ | == See Also == | ||
+ | * [[osLoadedCreationDate]] | ||
+ | * [[osLoadedCreationTime]] | ||
+ | * [[osLoadedCreationID]] |
Latest revision as of 19:13, 5 December 2020
string osLoadedCreationTime()
| |
| |
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
- osLoadedCreationDate
- osLoadedCreationTime
- osLoadedCreationID