It's probably a bit late to mention this now, but can't you get real time clock modules that you could interface to your micro?

Matthew