Return a Python `date` object for the OFTDate field.
(self)
| 174 | class OFTDate(Field): |
| 175 | @property |
| 176 | def value(self): |
| 177 | "Return a Python `date` object for the OFTDate field." |
| 178 | try: |
| 179 | yy, mm, dd, hh, mn, ss, tz = self.as_datetime() |
| 180 | return date(yy.value, mm.value, dd.value) |
| 181 | except (TypeError, ValueError, GDALException): |
| 182 | return None |
| 183 | |
| 184 | |
| 185 | class OFTDateTime(Field): |
nothing calls this directly
no test coverage detected