LlGetInventoryAcquireTime/ja
< LlGetInventoryAcquireTime
Jump to navigation
Jump to search
Revision as of 12:08, 2 November 2023 by Misaki Vanilla (talk | contribs)
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: string llGetInventoryAcquireTime( string item );警告
- If item is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
- This function currently returns an ISO timestamp that is missing milliseconds. It is recommended that you code your applications in preparation of millisecond support being added at a later date.
- Using llListSort to sort a list of timestamps that both include and exclude milliseconds will have undesired results. ".000000" will first have to be inserted into timestamps missing milliseconds.
サンプル
If there is no other item in the inventory, you get the timestamp from the script itself.
default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
string item = llGetInventoryName(INVENTORY_ALL, 0); // 0 means the first item in prim's inventory.
string timestamp = llGetInventoryAcquireTime(item);
llSay(0, "Timestamp for: " + item + " - " + timestamp); // output
}
}
関連項目
関数
• | llGetTimestamp | – | Returns the current timestamp using the same format | |
• | llGetInventoryCreator | – | Returns the inventory item's creator | |
• | llGetInventoryName | – | Returns the inventory item's name | |
• | llGetInventoryType | – | Tests to see if an inventory item exists and returns its type | |
• | llGetInventoryNumber | – | Returns the number of items of a specific type in inventory | |
• | llGetInventoryPermMask | – | Returns the inventory item's permissions | |
• | llGetInventoryKey | – | Returns the inventory item's UUID (if full perm) |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。