Skip to main content

timezone

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read the device timezone, or change it. These call app_timezone.

timezone​

public String timezone()
public String timezone(String tz)

The device timezone.

@return the zone, as an IANA name

Changes the device timezone and returns the new one. Takes an IANA name such as "Asia/Tokyo"; confirmed by reading it back, since an unknown zone is accepted by the device and ignored. Works on real hardware, unlike incomingCall and sms.

@param tz an IANA zone name, such as "Asia/Tokyo" @return the zone now in force, as read back

Examples​

Move the device to Tokyo time​

String zone = device.timezone("Asia/Tokyo"); // read back

The same call from the command line, mobium timezone Asia/Tokyo, printed on an Android 15 emulator:

Asia/Tokyo (was America/Los_Angeles)
BeforeAfter
Before: mobium timezone Asia/Tokyo on an Android 15 emulatorAfter: mobium timezone Asia/Tokyo on an Android 15 emulator

mobium timezone Asia/Tokyo on an Android 15 emulator