mirror of https://github.com/apache/lucene.git
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:
parent
b95e9a5154
commit
e793bd52be
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue