2208988800为1900年1月1日00:00:00~1970年1月1日00:00:00的总秒数
以下为相关资料:
Rfc 868
NetworkWorking Group J. Postel - ISI
Request for Comments: 868 K. Harrenstien -SRI
May 1983
TimeProtocol
This RFCspecifies a standard for the ARPA Internet community. Hosts on
the ARPA Internet that choose to implement a Time Protocol are expected
to adopt and implement this standard.
Thisprotocol provides a site-independent, machine readable date and
time. The Time service sends back to theoriginating source the time in
seconds since midnight on January first 1900.
Onemotivation arises from the fact that not all systems have a
date/time clock, and all are subject to occasional human ormachine
error. The use of time-servers makes itpossible to quickly confirm or
correct a system's idea of the time, by making a brief poll ofseveral
independent sites on the network.
Thisprotocol may be used either above the Transmission Control Protocol
(TCP) or above the User Datagram Protocol (UDP).
Whenused via TCP the time service works as follows:
S:Listen on port 37 (45 octal).
U:Connect to port 37.
S: Sendthe time as a 32 bit binary number.
U:Receive the time.
U: Closethe connection.
S: Closethe connection.
Theserver listens for a connection on port 37. When the connection
is established, the server returns a32-bit time value and closes the
connection. If the server is unable to determine the timeat its
site, it should either refuse theconnection or close it without
sending anything.
Postel [Page 1]
RFC868 May 1983
Time Protocol
Whenused via UDP the time service works as follows:
S:Listen on port 37 (45 octal).
U: Sendan empty datagram to port 37.
S:Receive the empty datagram.
S: Senda datagram containing the time as a 32 bit binary number.
U:Receive the time datagram.
Theserver listens for a datagram on port 37. When a datagram
arrives, the server returns a datagramcontaining the 32-bit time
value. If the server is unable to determine the time at its site, it
should discard the arriving datagramand make no reply.
The Time
The timeis the number of seconds since 00:00 (midnight) 1 January 1900
GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this
base will serve until the year 2036.
Forexample:
thetime 2,208,988,800 corresponds to00:00 1 Jan 1970 GMT,
2,398,291,200corresponds to 00:00 1 Jan 1976 GMT,
2,524,521,600corresponds to 00:00 1 Jan 1980 GMT,
2,629,584,000corresponds to 00:00 1 May 1983 GMT,
and-1,297,728,000 corresponds to 00:00 17 Nov 1858 GMT.
Postel [Page 2]
The NTP Era and Era Numbering
from The Wizard of Oz, L. Frank Baum
Era dynamically aloft
Last update 12-May-201223:56 UTC
Abstract
The NetworkTime Protocol (NTP) specification defines the timescale in terms of timestampsand dat