How to build a arduino with accurate rtc?

For a small Arduino project with an RTC, use a Teensy 3.6. Add a coin cell battery and it will kerp time for a very long time.

For smaller, use a Teensy 3.2 but you have to add the 32kHz crystal yourself.

The processor on the Arduino Due also has this ability but the Due board does not allow it.