Need to change android device time while execution

I have a requirement where I need to change the device time in between of my script execution
Is it possible to do so using appium / adb without having to root my device?

Also, I am looking for some API or something that would help me do this. I dont want to do this via interacting with UI, i.e. launch Settings->Change DateTime etc…Reason being on different devices the settings->ChangeDateTime UI is different

Please let me know is there any way to do so?

Nishant Shah

Do it using espresso, where you can directly use Android API. But without UI interaction this is not possible using Appium.

Just use adb:

Thanks for your responses.
I tried the adb shell command but its not working for physical device of mine which is non-rooted.