Справочник по платформе MLKitEntityExtraction
ДатаВремяEntity
class DateTimeEntity : NSObject
Объект даты и времени, извлеченный из текста.
Анализируемая дата и время.
Декларация
Быстрый
var dateTime: Date { get }
Детализация даты и времени.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-05 UTC.
[null,null,["Последнее обновление: 2025-01-05 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"]]