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.

Steve Robillard
  • 34,988
  • 18
  • 106
  • 110
user3127380
  • 95
  • 3
  • 14

1 Answers1

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

John La Rooy
  • 12,005
  • 9
  • 48
  • 77