Added in version 37.2

TimeManager


public final class TimeManager
extends Object

java.lang.Object
   ↳ android.app.time.TimeManager


The system service through which system components can interact with time and time zone services.

Summary

Public methods

TimeZone getHomeTimeZone()

Returns the current home time zone.

Inherited methods

Public methods

getHomeTimeZone

Added in version 37.2
public TimeZone getHomeTimeZone ()

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 Manifest.permission.READ_HOME_TIME_ZONE

Returns
TimeZone