MLKitEntityExtraction フレームワーク リファレンス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
DateTimeEntity
class DateTimeEntity : NSObject
テキストから抽出された日付と時刻のエンティティ。
-
宣言
Swift
var dateTime: Date { get }
-
-
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eDateTimeEntity is an object that represents a date and time extracted from text.\u003c/p\u003e\n"],["\u003cp\u003eIt provides the parsed date and time as a \u003ccode\u003eDate\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt specifies the granularity (precision) of the detected date and time.\u003c/p\u003e\n"],["\u003cp\u003eThe initializer for this class is unavailable, implying that it's likely created internally by the system.\u003c/p\u003e\n"]]],["The `DateTimeEntity` class extracts date and time information from text. It provides two key properties: `dateTime`, a `Date` object representing the parsed date and time, and `dateTimeGranularity`, which indicates the precision level of the extracted date and time using a `DateTimeGranularity` enum. The class's initializer (`init`) is unavailable for direct use.\n"],null,["# MLKitEntityExtraction Framework Reference\n\nDateTimeEntity\n==============\n\n class DateTimeEntity : NSObject\n\nA date and time entity extracted from text.\n- `\n ``\n ``\n `\n\n ### [dateTime](#/c:objc(cs)MLKDateTimeEntity(py)dateTime)\n\n `\n ` \n The parsed date and time. \n\n #### Declaration\n\n Swift \n\n var dateTime: Date { get }\n\n- `\n ``\n ``\n `\n\n ### [dateTimeGranularity](#/c:objc(cs)MLKDateTimeEntity(py)dateTimeGranularity)\n\n `\n ` \n The granularity of the date and time. \n\n #### Declaration\n\n Swift \n\n var dateTimeGranularity: ../Enums/DateTimeGranularity.html { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKDateTimeEntity(im)init)\n\n `\n ` \n Unavailable."]]