public interface TimeService
Modifier and Type | Method and Description |
---|---|
long |
getCurrentTime()
Returns the current time.
|
int |
getCurrentZoneOffset()
Returns the current zone offset.
|
long getCurrentTime()
int getCurrentZoneOffset()
The zone offset can change not only when the user configures his time zone, but also at any moment depending on the time zone rules. For example, the zone offset changes when switching to summer time or winter time if the configured time zone applies DST.