סימוכין למסגרת של MLKitEntityחילוץ
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
DateTimeEntity
class DateTimeEntity : NSObject
ישות של תאריך ושעה שחולצה מהטקסט.
-
הצהרה
Swift
var dateTime: Date { get }
-
רמת הפירוט של התאריך והשעה.
-
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]