Added in API level 37.2
TimeManager
class TimeManager
| kotlin.Any | |
| ↳ | android.app.time.TimeManager |
The system service through which system components can interact with time and time zone services.
Summary
| Public methods | |
|---|---|
| TimeZone? |
Returns the current home time zone. |
Public methods
getHomeTimeZone
Added in API level 37.2
fun getHomeTimeZone(): TimeZone?
Returns the current home time zone.
The returned value may be null if the home time zone is not set or if the home time zone is invalid. This API only supports Olson IDs (e.g. "Europe/London").
Requires android.Manifest.permission#READ_HOME_TIME_ZONE