This seems to come up every now and again and I needed to do this myself so here's an Arduino Sketch and a Visual Basic program to synchronize the Arduino clock (DS1307) to the P.C. clock. The VB program is in Visual Studio 2012 express but should work in any of the later releases as well - I've tried it in VS2017 and all OK.
It's self explanatory (I think) and looks like this.
Hope it's useful to someone.
BTW, the serial monitor can't be running at the same time and if you wish to compile the sketch then you need to disconnect the VB program.
Mike.
It's self explanatory (I think) and looks like this.
Hope it's useful to someone.
BTW, the serial monitor can't be running at the same time and if you wish to compile the sketch then you need to disconnect the VB program.
Mike.