Date Object

Note

This object is an extension the DB API. It is returned whenever Oracle date and timestamp (in Oracle 9i) columns are fetched and whenever the constructor methods (Date(), Time(), Timestamp()) are called.

Note

As of Python 2.4 cx_Oracle returns the datetime objects from the standard library datetime module instead of these objects.

Date.year
This read-only attribute returns the year.
Date.month
This read-only attribute returns the month.
Date.day
This read-only attribute returns the day.
Date.hour
This read-only attribute returns the hour.
Date.minute
This read-only attribute returns the minute.
Date.second
This read-only attribute returns the second.
Date.fsecond
This read-only attribute returns the fractional second.