I want to display the "connection" time of a client to a server

what is the easiest way to determine the months / days / hours / minutes a client has been connected?

???

ctTime = now - connectedattime

-------------------

WinSock_ConnectionRequesy
connectedattime=now