Difference between revisions of "LlGetInventoryAcquireTime/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 6: Line 6:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=with the timestamp that the item was added to the prim's inventory.
|return_text=アイテムがprimのインベントリに追加されたタイムスタンプを含む。


The time is in the UTC time zone in the format "YYYY-MM-DDThh:mm:ssZ"
時間はUTCタイムゾーンで "YYYY-MM-DDThh:mm:ssZ" の形式で表示されます。


Appears to be accurate to seconds.
秒単位で正確であるようです。
|spec
|spec
|caveats=
|caveats=


*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.
* この関数は現在、ミリ秒のないISOタイムスタンプを返します。ミリ秒のサポートが将来的に追加される可能性があるため、アプリケーションを作成する際にはその準備をすることをお勧めします。
*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.
* [[llListSort]]を使用してミリ秒を含むと含まないとできたタイムスタンプのリストをソートすると、望ましくない結果になります。ミリ秒のないタイムスタンプに ".000000" を挿入する必要があります。
|constants
|constants
|examples=If there is no other item in the inventory, you get the timestamp from the script itself.
|examples=インベントリに他のアイテムがない場合、スクリプト自体からタイムスタンプを取得します。
<source lang="lsl2">default
<source lang="lsl2">default
{
{
Line 35: Line 35:
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetTimestamp]]|Returns the current timestamp using the same format}}
{{LSL DefineRow||[[llGetTimestamp/ja]]|Returns the current timestamp using the same format}}
{{LSL DefineRow||[[llGetInventoryCreator]]|Returns the inventory item's creator}}
{{LSL DefineRow||[[llGetInventoryCreator/ja]]|Returns the inventory item's creator}}
{{LSL DefineRow||[[llGetInventoryName]]|Returns the inventory item's name}}
{{LSL DefineRow||[[llGetInventoryName/ja]]|Returns the inventory item's name}}
{{LSL DefineRow||[[llGetInventoryType]]|Tests to see if an inventory item exists and returns its type}}
{{LSL DefineRow||[[llGetInventoryType/ja]]|Tests to see if an inventory item exists and returns its type}}
{{LSL DefineRow||[[llGetInventoryNumber]]|Returns the number of items of a specific type in inventory}}
{{LSL DefineRow||[[llGetInventoryNumber/ja]]|Returns the number of items of a specific type in inventory}}
{{LSL DefineRow||[[llGetInventoryPermMask]]|Returns the inventory item's permissions}}
{{LSL DefineRow||[[llGetInventoryPermMask/ja]]|Returns the inventory item's permissions}}
{{LSL DefineRow||[[llGetInventoryKey]]|Returns the inventory item's [[UUID]] (if full perm)}}
{{LSL DefineRow||[[llGetInventoryKey/ja]]|Returns the inventory item's [[UUID]] (if full perm)}}
|also_events
|also_events
|also_tests
|also_tests

Revision as of 15:54, 22 November 2023

要約

関数: string llGetInventoryAcquireTime( string item );

アイテムがprimのインベントリに追加されたタイムスタンプを含む。

時間はUTCタイムゾーンで "YYYY-MM-DDThh:mm:ssZ" の形式で表示されます。

秒単位で正確であるようです。を string で返します。

• string item an item in the inventory of the prim this script is in

警告

  • If item is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
  • この関数は現在、ミリ秒のないISOタイムスタンプを返します。ミリ秒のサポートが将来的に追加される可能性があるため、アプリケーションを作成する際にはその準備をすることをお勧めします。
  • llListSortを使用してミリ秒を含むと含まないとできたタイムスタンプのリストをソートすると、望ましくない結果になります。ミリ秒のないタイムスタンプに ".000000" を挿入する必要があります。
All Issues ~ Search JIRA for related Bugs

サンプル

インベントリに他のアイテムがない場合、スクリプト自体からタイムスタンプを取得します。

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 Returns the current timestamp using the same format
•  llGetInventoryCreator/ja Returns the inventory item's creator
•  llGetInventoryName/ja Returns the inventory item's name
•  llGetInventoryType/ja Tests to see if an inventory item exists and returns its type
•  llGetInventoryNumber/ja Returns the number of items of a specific type in inventory
•  llGetInventoryPermMask/ja Returns the inventory item's permissions
•  llGetInventoryKey/ja Returns the inventory item's UUID (if full perm)

特記事項

Search JIRA for related Issues

Signature

function string llGetInventoryAcquireTime( string item );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。