 |
Forums |
Admin Start New Thread
By: Kubo Takehiro
RE: Date vs OraDate [ reply ] 2005-09-29 23:51
|
DateTime class was added at ruby 1.8.0.
But my knowledge about ruby libraries has been stopped at ruby 1.6.8.
Okay, I'll add DateTime options at the next release as following.
OCI8::BindType::Mapping[OCI8::SQLT_DAT] = OCI8::BindType::DateTime
OCI8::BindType::Mapping[OCI8::SQLT_TIMESTAMP] = OCI8::BindType::DateTime
These would not be default behaviour for a while.
It may be changed when major version is changed.
|
By: Kubo Takehiro
RE: Date vs OraDate [ reply ] 2005-03-28 16:05
|
A Ruby Date class has date information only. But an OraDate class has date and time.
If you fetch a sysdate as a Date, hour, minute and second are truncated.
|
By: Daniel Berger
Date vs OraDate [ reply ] 2005-03-24 19:31
|
Hi,
I noticed that something like a sysdate comes back as part of the "OraDate" class.
What is the difference between a standard Ruby Date class and an OraDate class? Why not just use the standard Date class?
Regards,
Dan
|
|
 |