| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
DatashareMockTime() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMilliseconds(int timeToAddInMs) |
long |
currentTimeMillis() |
Date |
itIsNow(String date)
sets current date and returns this date
|
protected void |
notifyListeners() |
Date |
now() |
void |
register(DateChangeListener listener) |
void |
setMockDate(Date mockDate)
sets current date
|
void |
setMockDate(String dateTime)
sets current date
|
void |
sleep(int milliseconds)
sleeps the given time
|
public void setMockDate(Date mockDate)
TimesetMockDate in interface Timepublic void sleep(int milliseconds)
Timepublic void setMockDate(String dateTime)
TimesetMockDate in interface TimedateTime - formatted iso8601public void addMilliseconds(int timeToAddInMs)
addMilliseconds in interface Timeprotected void notifyListeners()
public long currentTimeMillis()
currentTimeMillis in interface Timepublic void register(DateChangeListener listener)
Copyright © 2020 ICIJ. All rights reserved.