Sync Computer time to RTC

Hi, I'm all new to all this but slowly getting my head around the Arduino. I'm getting stuck combining and modifying sketches and the first cab of the rank is working out a way to sync the computer time to set a DS3107 RTC. Why? Well easy, to over come any power failures that happen without having to re-program.

I've spent hours searching the forum and playing about with code with no luck trying to combine the DS3107 and Datetime libaries.

So here are the questions..
Is it possible?
Has anyone got any sample code?

cheers
Gee