LUCENE-1158: DateTools UTC/GMT mismatch -> fixing the javadoc

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@616513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2008-01-29 20:46:33 +00:00
parent b95e9a5154
commit e793bd52be
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public class DateTools {
* @param resolution the desired resolution, see
* {@link #round(Date, DateTools.Resolution)}
* @return a string in format <code>yyyyMMddHHmmssSSS</code> or shorter,
* depeding on <code>resolution</code>; using UTC as timezone
* depeding on <code>resolution</code>; using GMT as timezone
*/
public static String dateToString(Date date, Resolution resolution) {
return timeToString(date.getTime(), resolution);
@ -83,7 +83,7 @@ public class DateTools {
* @param resolution the desired resolution, see
* {@link #round(long, DateTools.Resolution)}
* @return a string in format <code>yyyyMMddHHmmssSSS</code> or shorter,
* depeding on <code>resolution</code>; using UTC as timezone
* depeding on <code>resolution</code>; using GMT as timezone
*/
public static String timeToString(long time, Resolution resolution) {
Calendar cal = Calendar.getInstance(GMT);