Class ClockService
java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService
A Clock service to get current time as date based on a java.time.Clock object.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClockService
Instantiates a new Clock Service.- Parameters:
clock
- a java clock providing access to the current instant, date and time using a time-zone
-
-
Method Details
-
getNow
Gets the current time as Date.- Returns:
- the current time as Date.
-