refresh a div the the div content

refresh a div the the div content

i want to refresh a div with the contents of the same div is this possible

<div id="time">
<table>
  <tr>
    <td><?=date('g:i:s a')?></td>
  </tr>
</table>
</div>