OFTDate
This class represents a date field within a geographic data layer, extending the base field functionality. It provides a property to retrieve the field's value as a native Python date object by extracting year, month, and day components. The class handles potential conversion errors by returning None if the underlying data cannot be parsed into a valid date.
Attributes
| Attribute | Type | Description |
|---|---|---|
| value | date | Return a Python date object for the OFTDate field. |
Constructor
Signature
def OFTDate()
Methods
value()
@classmethod
def value() - > date
Return a Python date object for the OFTDate field.
Returns
| Type | Description |
|---|---|
date | A Python date object representing the field's value, or None if the date components are invalid or missing |