MCPcopy
hub / github.com/django/django / value

Method value

django/contrib/gis/gdal/field.py:202–208  ·  view source on GitHub ↗

Return a Python `time` object for this OFTTime field.

(self)

Source from the content-addressed store, hash-verified

200class OFTTime(Field):
201 @property
202 def value(self):
203 "Return a Python `time` object for this OFTTime field."
204 try:
205 yy, mm, dd, hh, mn, ss, tz = self.as_datetime()
206 return time(hh.value, mn.value, ss.value)
207 except (ValueError, GDALException):
208 return None
209
210
211class OFTInteger64(OFTInteger):

Callers

nothing calls this directly

Calls 2

timeFunction · 0.85
as_datetimeMethod · 0.80

Tested by

no test coverage detected