LlGetTimestamp/ja
From Second Life Wiki
メインページ > LlGetTimestamp > LlGetTimestamp/ja
例
// Reset tracker string BOOT_TIME; default { state_entry() { BOOT_TIME = llGetTimestamp(); // script restarts when SIM restarts } touch_start(integer num) { llSay(PUBLIC_CHANNEL, "The last system restart was @ " + BOOT_TIME); llSay(PUBLIC_CHANNEL, "Right now it is " + llGetTimestamp()); } }
// Greeting default { state_entry() { llSetTouchText("Greet"); } touch_start(integer num) { list TimeStamp = llParseString2List(llGetTimestamp(),["-",":"],["T"]); //Get timestamp and split into parts in a list integer Hour = llList2Integer(TimeStamp,4); if(Hour<12) llSay(PUBLIC_CHANNEL,"Good Morning, Oliver Sintim-Aboagye!"); else if(Hour<17) llSay(PUBLIC_CHANNEL,"Good Afternoon, " + llDetectedName(0)); else llSay(PUBLIC_CHANNEL,"Good Evening, " + llKey2Name(llDetectedKey(0))); } }
関連項目
関数
| • | llGetDate | – | 同じ形式ですが、時間を省きます。 |
項目
| • | ISO 8601 | |||
| • | Wikipedia:ISO_8601 | |||
| • | Code Racer | - 100回の試行での使い勝手のいいベンチマーク | ||
| • | Efficiency Tester | - 10,000回の試行での、さらに正確なベンチマーク | ||
| • | LSL_Script_Efficiency | - 効率的なテストの徹底的な議論 |
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。

