wget https://f.m.suning.com/api/ct.do
time=$(cat ct.do | cut -b 41-50)
echo $time
sudo rm ct.do
clear
current=$(date -d @$time "+%Y-%m-%d %H:%M:%S")
echo $current
date -s "$current"
linux对时的脚本
最新推荐文章于 2023-04-25 18:00:45 发布
wget https://f.m.suning.com/api/ct.do
time=$(cat ct.do | cut -b 41-50)
echo $time
sudo rm ct.do
clear
current=$(date -d @$time "+%Y-%m-%d %H:%M:%S")
echo $current
date -s "$current"