Real Time Clock

hi guys!

Im have a question about my RTC program.
It works but in need to sync my time from my PC to my RTC but i dont know how to do?

someone can help me or give me advise to improve my program!

Greetz

#include <Time.h>
#include <TimeLib.h>
#include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC
#include <Time.h> //http://www.arduino.cc/playground/Code/Time
#include <Wire.h> //http://arduino.cc/en/Reference/Wire (included with Arduino IDE)

void setup(void)
{
Serial.begin(9600);
setSyncProvider(RTC.get); // the function to get the time from the RTC
if(timeStatus() != timeSet)
Serial.println(“Unable to sync with the RTC”);
else
Serial.println(“RTC has set the system time”);
}

void loop(void)
{
digitalClockDisplay();
delay(1000);
}

void digitalClockDisplay(void)
{
// digital clock display of the time
Serial.print(hour());
printDigits(minute());
printDigits(second());
Serial.print(’ ‘);
Serial.print(day());
Serial.print(’ ‘);
Serial.print(month());
Serial.print(’ ');
Serial.print(year());
Serial.println();
}

void printDigits(int digits)
{
// utility function for digital clock display: prints preceding colon and leading 0
Serial.print(’:’);
if(digits < 10)
Serial.print(‘0’);
Serial.print(digits);
}

What program are you using to send the Time from the PC to the Arduino?

The program above is my program that I use, but I need to set the time manually.
I want it to sync automatically with my pc when its plugged in.

So I repeat:
"What program are you using to send the Time from the PC to the Arduino?"

The arduino cannot magically connect to the PC and read the time. You need a program on the PC to read the system time, format it, and send it down the serial line to the arduino. The arduino needs to receive that information, parse it and set the clock.

I dont have any program for that.
You got an suggestion for which program i have to use?