MLKitEntity 擷取架構參考資料
DateTimeEntity
class DateTimeEntity : NSObject
從文字中擷取的日期和時間實體。
-
聲明
Swift
var dateTime: Date { get }
-
-
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[null,null,["上次更新時間:2024-08-22 (世界標準時間)。"],[[["DateTimeEntity is an object that represents a date and time extracted from text."],["It provides the parsed date and time as a `Date` object."],["It specifies the granularity (precision) of the detected date and time."],["The initializer for this class is unavailable, implying that it's likely created internally by the system."]]],["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"]]