1 |
/* java.util.Calendar |
/* java.util.Calendar |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
504 |
/** |
/** |
505 |
* Returns the time represented by this Calendar. |
* Returns the time represented by this Calendar. |
506 |
* @return the time in milliseconds since the epoch. |
* @return the time in milliseconds since the epoch. |
507 |
|
* @specnote This was made public in 1.4. |
508 |
*/ |
*/ |
509 |
protected long getTimeInMillis() |
public long getTimeInMillis() |
510 |
{ |
{ |
511 |
if (!isTimeSet) |
if (!isTimeSet) |
512 |
computeTime(); |
computeTime(); |
517 |
* Sets this Calendar's time to the given Time. All time fields |
* Sets this Calendar's time to the given Time. All time fields |
518 |
* are invalidated by this method. |
* are invalidated by this method. |
519 |
* @param time the time in milliseconds since the epoch |
* @param time the time in milliseconds since the epoch |
520 |
|
* @specnote This was made public in 1.4. |
521 |
*/ |
*/ |
522 |
protected void setTimeInMillis(long time) |
public void setTimeInMillis(long time) |
523 |
{ |
{ |
524 |
this.time = time; |
this.time = time; |
525 |
isTimeSet = true; |
isTimeSet = true; |