1.从RTC读取时间
#hwclock -s
2.读取时间可用date命令
#date3.设置日期
#date -s 2015-07-22 4.设置时间
#date -s 17:55:005.设置日期和时间
#date -s "2015-07-22 17:52:00"6.将时间存入RTC
#hwclock –w
本文详细介绍了如何使用Linux命令行工具从RTC读取时间、设置日期与时间的方法。
1.从RTC读取时间
#hwclock -s
2.读取时间可用date命令
#date#date -s 2015-07-22 #date -s 17:55:00#date -s "2015-07-22 17:52:00"#hwclock –w
被折叠的 条评论
为什么被折叠?