PyTd icon indicating copy to clipboard operation
PyTd copied to clipboard

Add support for timedelta interval types

Open sandan opened this issue 8 years ago • 1 comments

Currently the DBAPI supports teradata.datatypes.Interval as the underlying python object for teradata INTERVAL types. Python has a native object from the datetime package called datetime.timedelta that can be used.

sandan avatar Jun 17 '16 20:06 sandan

The teradata.datatypes.Interval class provides a timedelta function to get the interval in it's datetime.timedelta represtation. As not all Intervals can be represented as a timedelta object (e.g. Year/Month), a custom object was created to represent all possible interval types. Does this function provide the functionality you're after?

Thanks, -Eric

escheie avatar Jun 22 '16 04:06 escheie