public interface HasDeviceTime extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getDeviceTime()
Gets device date and time for both iOS(host time is returned for simulators) and Android devices.
|
default java.lang.String |
getDeviceTime(java.lang.String format)
Gets device date and time for both iOS(host time is returned for simulators) and Android devices.
|
execute, execute
default java.lang.String getDeviceTime(java.lang.String format)
format
- The set of format specifiers. Read
https://momentjs.com/docs/ to get the full list of supported
datetime format specifiers. The default format is
`YYYY-MM-DDTHH:mm:ssZ`, which complies to ISO-8601default java.lang.String getDeviceTime()