import socket, datetime

now = datetime.datetime.now()

since_midnight = (
    now - 
    now.replace(hour=0, minute=0, second=0)
).seconds

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto('analogclock/clock/set:%d' % since_midnight, ('127.0.0.1', 4444))

set clock to current time