Difference between revisions of "LlGetInventoryAcquireTime/ja"
Jump to navigation
Jump to search
(copy from english(Todo: need translate to japanese)) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function/ja | ||
|inject-2={{LSL_Function/inventory|item|uuid=false}} | |inject-2={{LSL_Function/inventory/ja|item|uuid=false}} | ||
|func_sleep=0.0|func_energy=10.0 | |func_sleep=0.0|func_energy=10.0 | ||
|func=llGetInventoryAcquireTime|return_type=string|p1_type=string|p1_name=item | |func=llGetInventoryAcquireTime|return_type=string|p1_type=string|p1_name=item | ||
Line 6: | Line 6: | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text= | |return_text=アイテムがprimのインベントリに追加されたタイムスタンプを含む。 | ||
時間はUTCタイムゾーンで "YYYY-MM-DDThh:mm:ssZ" の形式で表示されます。 | |||
秒単位で正確であるようです。 | |||
|spec | |spec | ||
|caveats= | |caveats= | ||
* この関数は現在、ミリ秒のないISOタイムスタンプを返します。ミリ秒のサポートが将来的に追加される可能性があるため、アプリケーションを作成する際にはその準備をすることをお勧めします。 | |||
* | * [[llListSort]]を使用してミリ秒を含むと含まないとできたタイムスタンプのリストをソートすると、望ましくない結果になります。ミリ秒のないタイムスタンプに ".000000" を挿入する必要があります。 | ||
* | |||
|constants | |constants | ||
|examples= | |examples=インベントリに他のアイテムがない場合、スクリプト自体からタイムスタンプを取得します。 | ||
<source lang="lsl2">default | <source lang="lsl2">default | ||
{ | { | ||
Line 35: | Line 34: | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= | ||
{{LSL DefineRow||[[llGetTimestamp]]| | {{LSL DefineRow||[[llGetTimestamp/ja]]|同じフォーマットを使用して現在のタイムスタンプを返します}} | ||
{{LSL DefineRow||[[llGetInventoryCreator]]| | {{LSL DefineRow||[[llGetInventoryCreator/ja]]|インベントリアイテムの作成者を返します}} | ||
{{LSL DefineRow||[[llGetInventoryName]]| | {{LSL DefineRow||[[llGetInventoryName/ja]]|インベントリアイテムの名前を返します}} | ||
{{LSL DefineRow||[[llGetInventoryType]]| | {{LSL DefineRow||[[llGetInventoryType/ja]]|インベントリアイテムが存在するかどうかをテストし、そのタイプを返します}} | ||
{{LSL DefineRow||[[llGetInventoryNumber]]| | {{LSL DefineRow||[[llGetInventoryNumber/ja]]|特定のタイプのアイテムの在庫数を返します}} | ||
{{LSL DefineRow||[[llGetInventoryPermMask]]| | {{LSL DefineRow||[[llGetInventoryPermMask/ja]]|インベントリアイテムの権限を返します}} | ||
{{LSL DefineRow||[[llGetInventoryKey]]| | {{LSL DefineRow||[[llGetInventoryKey/ja]]|インベントリアイテムの[[UUID]](フルパームの場合)を返します}} | ||
|also_events | |also_events | ||
|also_tests | |also_tests |
Latest revision as of 15:59, 22 November 2023
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: string llGetInventoryAcquireTime( string item );警告
- item がプリムの中で見つからない場合、エラーが DEBUG_CHANNEL 上で叫ばれます。
- この関数は現在、ミリ秒のないISOタイムスタンプを返します。ミリ秒のサポートが将来的に追加される可能性があるため、アプリケーションを作成する際にはその準備をすることをお勧めします。
- llListSortを使用してミリ秒を含むと含まないとできたタイムスタンプのリストをソートすると、望ましくない結果になります。ミリ秒のないタイムスタンプに ".000000" を挿入する必要があります。
サンプル
インベントリに他のアイテムがない場合、スクリプト自体からタイムスタンプを取得します。
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/ja | – | 同じフォーマットを使用して現在のタイムスタンプを返します | |
• | llGetInventoryCreator/ja | – | インベントリアイテムの作成者を返します | |
• | llGetInventoryName/ja | – | インベントリアイテムの名前を返します | |
• | llGetInventoryType/ja | – | インベントリアイテムが存在するかどうかをテストし、そのタイプを返します | |
• | llGetInventoryNumber/ja | – | 特定のタイプのアイテムの在庫数を返します | |
• | llGetInventoryPermMask/ja | – | インベントリアイテムの権限を返します | |
• | llGetInventoryKey/ja | – | インベントリアイテムのUUID(フルパームの場合)を返します |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。