1

I would like to know how to set Real Time Clock instead of Fake Clock in Raspberry PI.

Hope you guys could help me out with it as soon as possible.

1 Answer 1

3

The raspberry Pi doesn't have a real time clock. You can easily add a cheap ($2) one using I2C (eg DS1307). Setting/Reading the time can then be done using the I2C library of your favourite language.

Searching the web for rasberry pi ds1307 turns up lots of help

1
  • 2
    I always forget the Pi has no realtime clock because it is connected either wirelessly or via ethernet to the internet and the built in NTP client sets the clock. You could run your own NTP server on an internal network if connecting to the internet is not an option.
    – rob
    Jun 25, 2014 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.