Skip to main content

OFTTime

This class represents an OGR Field Type for time values, extending the base Field class. It provides a property to retrieve the field's data as a native Python time object by extracting hour, minute, and second components from the underlying data structure.

Attributes

AttributeTypeDescription
valuedatetime.timeReturn a Python time object for this OFTTime field.

Constructor

Signature

def OFTTime()

Methods


value()

@classmethod
def value() - > time

Return a Python time object for this OFTTime field.

Returns

TypeDescription
timeA Python time object representing the hour, minute, and second of the field, or None if the value is invalid or cannot be parsed.