7. Date Objects
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.
- year
-
This read-only attribute returns the year.
- month
-
This read-only attribute returns the month.
- day
-
This read-only attribute returns the day.
- hour
-
This read-only attribute returns the hour.
- minute
-
This read-only attribute returns the minute.
- second
-
This read-only attribute returns the second.
- fsecond
-
This read-only attribute returns the fractional second.
Release 4.3.1, documentation updated on April 18, 2007.