How to Update Date and Time of Raspberry Pi With out Internet

后端 未结 3 973
感情败类
感情败类 2021-02-07 01:15

I have connect my Raspberry Pi to LAN but there is no internet available. Is there any method to update raspberry pi date time by using a PC (windows 7) in LAN? I want to get co

3条回答
  •  孤城傲影
    2021-02-07 01:43

    Remember that Raspberry Pi does not have real time clock. So even you are connected to internet have to set the time every time you power on or restart.

    This is how it works:

    1. Type sudo raspi-config in the Raspberry Pi command line
    2. Internationalization options
    3. Change Time Zone
    4. Select geographical area
    5. Select city or region
    6. Reboot your pi

    Next thing you can set time using this command

    sudo date -s "Mon Aug  12 20:14:11 UTC 2014"
    

    More about data and time

    man date
    

    When Pi is connected to computer should have to manually set data and time

提交回复
热议问题