Welcome 微信登录

首页 / 操作系统 / Linux / Linux时间设置开发板时间设置

系统查看时间用 date
更改时间用     date  ‘22:39:30 2012-06-12" (root) 即将时间改为2012年6月12日 22点39分30秒
程序实现date命令
#include <stdio.h>
#include <time.h>
 
int main()
{
    time_t tim;
    time(&tim);
    printf("%s",ctime(&tim));
    return 0;
}
 
开发板上设置系统时间
date 061223052012.30     月日时分年.秒
查看硬件时间     hwclock --show
硬件时间同步     hwclock --systohc
重启后时间错乱.Ubuntu 系统播放视屏Ubuntu下使用Sublime Text 2搭建Go开发环境相关资讯      开发板 
  • DM8168_ETV_V1.1开发板mount主机常  (05/28/2014 11:52:21)
  • Arndale Octa开发板下载Android源  (02/18/2014 11:47:23)
  • Ubuntu 下新开发板adb 无法识别问  (10/27/2012 16:42:43)
  • 飞凌2440开发板挂载NFS  (02/18/2014 11:58:52)
  • Tiny210v2 开发板环境搭建  (05/13/2013 08:22:07)
  • Ubuntu下ZedBoard USB-Jtag驱动安  (10/20/2012 08:08:17)
本文评论 查看全部评论 (0)
表情: 姓名: 字数