Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2004

Tip: Looking for answers? Try searching our database.

Oracle and Dates

Thread view: 
Roedy Green - 25 Mar 2004 00:40 GMT
I say this about Oracle and dates in the Java glossary.  Somebody
wrote and said it was not true. I did not generate this from first
hand experience. What is the truth?

Oracle SQL databases expect dates stored to be presented in UTC, yet
when you retrieve them they automatically convert to local time. This
is not what you want. A servlet's local time has no relation to the
final client's local time. Store dates as longs or ints to avoid
Oracle's foolish meddling.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Ruud de Koter - 30 Mar 2004 08:53 GMT
Hi Roedy,

You wrote:

> I say this about Oracle and dates in the Java glossary.  Somebody
> wrote and said it was not true. I did not generate this from first
[quoted text clipped - 5 lines]
> final client's local time. Store dates as longs or ints to avoid
> Oracle's foolish meddling.

It 'd be nice if your somebody would say what exactly isn't true. One point of
relevance, though, is that Oracle introduced a number of timestamp datatypes in
Oracle9i (I think), both with and without locale settings. That at least makes
the story more diverse. Unfortunately, I can not give you all the details, as I
don't know them myself. I would have to read up at
http://otn.oracle.com/pls/db92/db92.homepage.

Hope this helps,

Ruud.

PS. Compliments on your website. One of my favorites in case of Java issues.
Makes it a bit of a bummer I can not give you more detail.
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Signature

--------------------------------------------------------------------------------------
Ruud de Koter                    HP OpenView Software Business Unit
Senior Software Engineer         IT Service Management Operation
Telephone: +31 (20) 514 15 89    Van Diemenstraat 200  
Telefax  : +31 (20) 514 15 90    PO Box 831
Telnet   : 547 - 1589            1000 AV  Amsterdam, the Netherlands
Email    : ruud_dekoter@hp.com

internet: http://www.openview.hp.com/products/servicedesk
intranet: http://ovweb.bbn.hp.com/itservicemanager
--------------------------------------------------------------------------------------



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.