How to get device time?

1,955 views
Skip to first unread message

Wei Hu

unread,
Oct 24, 2013, 12:01:16 AM10/24/13
to calabash...@googlegroups.com
Hi,

I need to get device time to verify some function, however my test app doesn't provide any function to get the current device time. Does Calabash provide a method to get test device time?


Wayne

Wei Hu

unread,
Oct 24, 2013, 4:44:42 PM10/24/13
to calabash...@googlegroups.com
Find a way to get time through 'adb shell'


time=`#{default_device.adb_command} shell date +%s`     # return epoch seconds
Reply all
Reply to author
Forward
0 new messages