Package org.openwms.core.uaa
Interface TimeProvider
- All Known Implementing Classes:
- DefaultTimeProvider
public interface TimeProvider
A TimeProvider is able to provide dates and times.
- Author:
- Heiko Scherrer
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault Instantnow()Returns the current date and time of the system considering the configured timezone.default DateReturns the current date and time considering the configured timezone.default ZonedDateTimeReturns the current date and time considering the configured timezone.default ZonedDateTimenowAsZonedDateTime(ZoneId zoneId) Returns the current date and time considering the configured timezone.
- 
Field Details- 
DATE_TIME_MILLIS_WITH_TIMEZONEThe format pattern for all date-time with milliseconds and timezone types.- See Also:
 
- 
DATE_TIME_WITH_TIMEZONEThe format pattern for all date-time with timezone types.- See Also:
 
 
- 
- 
Method Details- 
nowAsDateReturns the current date and time considering the configured timezone.- Returns:
- Timezone aware Date
 
- 
nowAsZonedDateTimeReturns the current date and time considering the configured timezone.- Returns:
- Timezone aware DateTime
 
- 
nowAsZonedDateTimeReturns the current date and time considering the configured timezone.- Parameters:
- zoneId- ZoneId
- Returns:
- Timezone aware DateTime
 
- 
nowReturns the current date and time of the system considering the configured timezone.- Returns:
- Timezone aware Date
 
 
-