Package io.micronaut.data.runtime.date
Class CurrentDateTimeProvider
java.lang.Object
io.micronaut.data.runtime.date.CurrentDateTimeProvider
- All Implemented Interfaces:
DateTimeProvider<OffsetDateTime>
@Singleton
public class CurrentDateTimeProvider
extends Object
implements DateTimeProvider<OffsetDateTime>
Default implementation of
DateTimeProvider
.- Since:
- 1.0.0
- Author:
- niravassar
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CurrentDateTimeProvider
public CurrentDateTimeProvider()
-
-
Method Details
-
getNow
Description copied from interface:DateTimeProvider
Returns the time to be used for the timestamp.- Specified by:
getNow
in interfaceDateTimeProvider<OffsetDateTime>
- Returns:
- The resulting time.
-