On Thu, 19 Jul 2001, Hans Liebenberg wrote:

| Hi,
|
| I have run into a problem that doesn;t make much sense, I think I'm
| obvioulsy being a bit stupid.
| I am accessing a SQL server 7.0 database storing and retrieving datetime
| field types.

java.sql.Date is a _date_.
java.sql.Time is a _time_ (you know, "11:30 PM")

java.sql.Timestamp is a "datetime" (as in MySQL, i have _no clue_ as to
why this isn't a SQL92 thingy), which includes both, but with a load of
extra presicion.

Both the date and time uses milliseconds from epoch (I believe), and the
results you got are the ones you should get.

Have fun!

--
Mvh,
Endre

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to