lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Snyder" <wsnyd...@gmail.com>
Subject DateTools question
Date Wed, 26 Apr 2006 18:04:18 GMT
Hello,

Why does DateTools.dateToString() return a String representation of my Date,
but in a different TimeZone. Does it use its own Calendar/TimeZone settings?

F.I.

DateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS");
System.out.println(DateTools.dateToString(format.parse("2006-04-26 07:29:
52.581"),DateTools.Resolution.MINUTE));

will print out

200604261129

Why the 4 hour difference?

Thanks!

--Bill

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message