InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: Handling Date types


Bill,

Thanks very much.  I think that explains what's going on - I must have
missed these (critical) details in the Javadoc.

Regards,

Terry

---------------------------------------
To: instantDB@enhydra.org
Subject: Re: InstantDB: Handling Date types
From: Willaim Graham <wwg@sinclair.net>
Date: Thu, 30 Nov 2000 15:20:36 -0800

Hi, Terry --

I'll speak a bit to the java side of things, and let
others speak about any InstantDB-specific issues:

java.sql.Date is a thin wrapper around java.util.Date,
and *only* uses the date portion -- the time portion is
discarded.  Similarly, java.sql.Time is a thin wrapper
around java.util.Date that discards the date portion,
while keeping the time portion.  If you want true
datetime, you need to use the java.sql.Timestamp data
type, which keeps both date and time portions.

Hope this helps,
Bill Graham

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.