public class ConstantTimeKeeper extends Object implements TimeKeeper
| Constructor and Description |
|---|
ConstantTimeKeeper(long timestampInSeconds)
Instantiates a new constant time keeper.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCurrentDate() |
long |
getCurrentTime() |
TimeZone |
getTimeZone() |
public ConstantTimeKeeper(long timestampInSeconds)
timestamp - the timestamp in secondspublic long getCurrentTime()
getCurrentTime in interface TimeKeeperpublic Date getCurrentDate()
getCurrentDate in interface TimeKeeperpublic TimeZone getTimeZone()
getTimeZone in interface TimeKeeperCopyright © 2017. All rights reserved.