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