Referensi Framework MLKitEntityExtraction
DateTimeEntity
class DateTimeEntity : NSObject
Entitas tanggal dan waktu yang diekstrak dari teks.
-
Tanggal dan waktu yang diuraikan.
Pernyataan
Swift
var dateTime: Date { get }
-
Perincian tanggal dan waktu.
-
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-22 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-22 UTC."],[[["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"]]