NTP, the Network Time Protocol, is used to keep computer clocks accurate over the Internet, or by following an accurate hardware receiver which interprets GPS, DCF-77, NIST or similar time signals.
ntpdate is a simple NTP client which allows a system's clock to be set to match the time obtained by communicating with one or more servers.