java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.service.ClockService

public class ClockService extends Object
A Clock service to get current time as date based on a java.time.Clock object.
  • Constructor Details

    • ClockService

      public ClockService(Clock clock)
      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

      public Date getNow()
      Gets the current time as Date.
      Returns:
      the current time as Date.