public class Clock extends Object
Constructor and Description |
---|
Clock() |
Modifier and Type | Method and Description |
---|---|
Date |
getEventTime(double duration)
Returns completion time given event duration.
|
Date |
getTime()
Returns time
|
void |
setTime(Date newTime)
Set current time.
|
public Date getTime()
public void setTime(Date newTime)
newTime
- time to setpublic Date getEventTime(double duration)
duration
- duration of eventCopyright © 2020 Pivotal Software, Inc.. All rights reserved.