If you want to use shell commands in the Android system, you need to enter the Android command line window through ADB. Please refer to the tutorial on using ADB adb debug Chapter 1. After opening the Android system command line through adb.
adb root
adb shell
data
date --set='2023-10-25 15:17:42'
hwclock --systohc
hwclock --show
data