Sync time with PC with time.h

Hi I'm beginner in Arduino programming.
Can you help me how to set the time into current PC time?

e.g:
now(); >>>> is for default time 1/1/1970
and how about the PC time?

Thanks a lot!

If I wanted to do this, I would have to write a sketch on the arduino which sends some kind of request to the PC to tell it the time, and send some kind of message back with the time, and then have the arduino write that into the real-time clock device ( 1307 or whatever you are using ).

And then you would have to write a program on the PC to handle this request at the PC end.

There is probably an easier way, someone might suggest one.