D
denjo02
Hello all,
I am having trouble with the Eire Timezone, and the date/timestamp
"01/01/1900 00:00:00". When I run this piece of code:
import java.sql.Timestamp;
....
tz = TimeZone.getTimeZone("Eire");
sf.setTimeZone(tz);
String sdat = "01/01/1900 00:00:00";
Timestamp sdate = new java.sql.Timestamp(sf.parse(sdat)
.getTime());
System.out.println("sdate="+sdate);
the resulting time displayed this:
sdate=1900-01-01 00:25:21.0
Can anybody explain what I am doing wrong here, or is there a bug of
some sort in java? Note that I have distilled this testcase down, and
am now running it on a machine which has the SDK installed, but does
not have any RDBMS vendor's JDBC driver installed. It's purely java...
John Dennis
I am having trouble with the Eire Timezone, and the date/timestamp
"01/01/1900 00:00:00". When I run this piece of code:
import java.sql.Timestamp;
....
tz = TimeZone.getTimeZone("Eire");
sf.setTimeZone(tz);
String sdat = "01/01/1900 00:00:00";
Timestamp sdate = new java.sql.Timestamp(sf.parse(sdat)
.getTime());
System.out.println("sdate="+sdate);
the resulting time displayed this:
sdate=1900-01-01 00:25:21.0
Can anybody explain what I am doing wrong here, or is there a bug of
some sort in java? Note that I have distilled this testcase down, and
am now running it on a machine which has the SDK installed, but does
not have any RDBMS vendor's JDBC driver installed. It's purely java...
John Dennis