UNPKG

appium-android-driver

Version:

Android UiAutomator and Chrome support for Appium

24 lines 1.02 kB
import type { AndroidDriver } from '../driver'; /** * Gets the current device time. * * @param format The format string for the time. Defaults to ISO8601 format. * @returns Promise that resolves to the formatted device time string. */ export declare function getDeviceTime(this: AndroidDriver, format?: string): Promise<string>; /** * Gets the current device time. * * @param format The format string for the time. Defaults to 'YYYY-MM-DDTHH:mm:ssZ'. * @returns Promise that resolves to the formatted device time string. */ export declare function mobileGetDeviceTime(this: AndroidDriver, format?: string): Promise<string>; /** * Adjusts the device time zone. * * @param zoneName The time zone identifier (e.g., 'America/New_York', 'Europe/London'). * @returns Promise that resolves when the time zone is set. * @throws {Error} If the time zone identifier is not known. */ export declare function adjustTimeZone(this: AndroidDriver, zoneName: string): Promise<void>; //# sourceMappingURL=time.d.ts.map