diff options
| author | Michael Witten <mfwitten@gmail.com> | 2010-01-17 04:53:52 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2010-01-17 04:55:05 +0100 |
| commit | f49c451a62913eaf7f3ff03e6df66e2e0f33237b (patch) | |
| tree | ed05109d6a2e80db46ac91d8a058e0bae9ec0015 /man3 | |
| parent | 884266b8f1d5b2bca6eb42fd8118313e29caa6ac (diff) | |
| download | man-pages-f49c451a62913eaf7f3ff03e6df66e2e0f33237b.tar.gz | |
stime.2, time.2, utimensat.2, ctime.3, difftime.3, ftime.3, getspnam.3, mq_receive.3, mq_send.3, rtime.3, sem_wait.3, strftime.3, strptime.3, timeradd.3, rtc.4, core.5, proc.5, icmp.7, time.7: Global fix: Consistently define the Epoch
All definitions of the Epoch have been refactored to the following:
1970-01-01 00:00:00 +0000 (UTC)
That form is more consistent, logical, precise, and internationally
recognizable than the other variants.
Also, some wording has been altered as well.
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/ctime.3 | 3 | ||||
| -rw-r--r-- | man3/difftime.3 | 6 | ||||
| -rw-r--r-- | man3/ftime.3 | 4 | ||||
| -rw-r--r-- | man3/getspnam.3 | 4 | ||||
| -rw-r--r-- | man3/mq_receive.3 | 2 | ||||
| -rw-r--r-- | man3/mq_send.3 | 2 | ||||
| -rw-r--r-- | man3/rtime.3 | 4 | ||||
| -rw-r--r-- | man3/sem_wait.3 | 2 | ||||
| -rw-r--r-- | man3/strftime.3 | 3 | ||||
| -rw-r--r-- | man3/strptime.3 | 3 | ||||
| -rw-r--r-- | man3/timeradd.3 | 3 |
11 files changed, 16 insertions, 20 deletions
diff --git a/man3/ctime.3 b/man3/ctime.3 index 754468009e..5a104598f1 100644 --- a/man3/ctime.3 +++ b/man3/ctime.3 @@ -78,8 +78,7 @@ and functions all take an argument of data type \fItime_t\fP which represents calendar time. When interpreted as an absolute time value, it represents the number of -seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal -Time (UTC). +seconds elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). .PP The .BR asctime () diff --git a/man3/difftime.3 b/man3/difftime.3 index 556775131d..79887b10a3 100644 --- a/man3/difftime.3 +++ b/man3/difftime.3 @@ -40,9 +40,9 @@ The function returns the number of seconds elapsed between time \fItime1\fP and time \fItime0\fP, represented as a .IR double . -The two times are specified in calendar time, which represents the time -elapsed since the Epoch -(00:00:00 on January 1, 1970, Coordinated Universal Time (UTC)). +Each of the times is specified in calendar time, which means its +value is a measurement (in seconds) relative to the Epoch, +1970-01-01 00:00:00 +0000 (UTC). .SH "CONFORMING TO" SVr4, 4.3BSD, C89, C99. .SH NOTES diff --git a/man3/ftime.3 b/man3/ftime.3 index 0c6b28227a..dc42994078 100644 --- a/man3/ftime.3 +++ b/man3/ftime.3 @@ -36,8 +36,8 @@ ftime \- return date and time .sp .BI "int ftime(struct timeb *" tp ); .SH DESCRIPTION -This function returns the current time, in seconds and milliseconds -since the Epoch (00:00:00 UTC, 1 January 1970). +This function returns the current time as seconds and milliseconds +since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). The time is returned in .IR tp , which is declared as follows: diff --git a/man3/getspnam.3 b/man3/getspnam.3 index 3d8ec7b666..38cb6a7c10 100644 --- a/man3/getspnam.3 +++ b/man3/getspnam.3 @@ -194,7 +194,7 @@ struct spwd { char *sp_namp; /* Login name */ char *sp_pwdp; /* Encrypted password */ long sp_lstchg; /* Date of last change (measured - in days since 1 Jan 1970) */ + in days since 1970-01-01 00:00:00 +0000 (UTC)) */ long sp_min; /* Min # of days between changes */ long sp_max; /* Max # of days between changes */ long sp_warn; /* # of days before password expires @@ -202,7 +202,7 @@ struct spwd { long sp_inact; /* # of days after password expires until account is disabled */ long sp_expire; /* Date when account expires (measured - in days since 1 Jan 1970) */ + in days since 1970-01-01 00:00:00 +0000 (UTC)) */ unsigned long sp_flag; /* Reserved */ }; .fi diff --git a/man3/mq_receive.3 b/man3/mq_receive.3 index 32343a0be4..9a558120da 100644 --- a/man3/mq_receive.3 +++ b/man3/mq_receive.3 @@ -83,7 +83,7 @@ flag is not enabled for the message queue description, then points to a structure which specifies a ceiling on the time for which the call will block. This ceiling is an absolute timeout in seconds and nanoseconds -since the Epoch (midnight on the morning of 1 January 1970), +since the Epoch, 1970-01-01 00:00:00 +0000 (UTC), and it is specified in the following structure: .sp .in +4n diff --git a/man3/mq_send.3 b/man3/mq_send.3 index 97e8bec435..05c0d65f4b 100644 --- a/man3/mq_send.3 +++ b/man3/mq_send.3 @@ -89,7 +89,7 @@ flag is not enabled for the message queue description, then points to a structure which specifies a ceiling on the time for which the call will block. This ceiling is an absolute timeout in seconds and nanoseconds -since the Epoch (midnight on the morning of 1 January 1970), +since the Epoch, 1970-01-01 00:00:00 +0000 (UTC), and it is specified in the following structure: .sp .in +4n diff --git a/man3/rtime.3 b/man3/rtime.3 index 24be7590c8..cd84f44ec8 100644 --- a/man3/rtime.3 +++ b/man3/rtime.3 @@ -22,8 +22,8 @@ RFC\ 868 to obtain the time from a remote machine. The Time Server Protocol gives the time in seconds since 00:00:00 UTC, 1 Jan 1900, and this function subtracts the appropriate constant in order to -convert the result to seconds since -00:00:00 UTC, 1 Jan 1970, the Unix Epoch. +convert the result to seconds since the Epoch, +1970-01-01 00:00:00 +0000 (UTC). .LP When .I timeout diff --git a/man3/sem_wait.3 b/man3/sem_wait.3 index 526f57d625..062e436e5a 100644 --- a/man3/sem_wait.3 +++ b/man3/sem_wait.3 @@ -77,7 +77,7 @@ should block if the decrement cannot be immediately performed. The .I abs_timeout argument points to a structure that specifies an absolute timeout -in seconds and nanoseconds since the Epoch (00:00:00, 1 January 1970). +in seconds and nanoseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). This structure is defined as follows: .nf diff --git a/man3/strftime.3 b/man3/strftime.3 index ce8655a84d..aacf8823ca 100644 --- a/man3/strftime.3 +++ b/man3/strftime.3 @@ -182,8 +182,7 @@ For a version including the seconds, see below. .TP .B %s -The number of seconds since the Epoch, that is, since 1970-01-01 -00:00:00 UTC. (TZ) +The number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). (TZ) .TP .B %S The second as a decimal number (range 00 to 60). diff --git a/man3/strptime.3 b/man3/strptime.3 index 148ed0727f..ffcb4e9c99 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -374,8 +374,7 @@ is accepted as a synonym for Finally .TP .B %s -The number of seconds since the Epoch, -that is, since 1970-01-01 00:00:00 UTC. +The number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). Leap seconds are not counted unless leap second support is available. .LP The glibc implementation does not require whitespace between diff --git a/man3/timeradd.3 b/man3/timeradd.3 index e766e61a95..ca385e4b32 100644 --- a/man3/timeradd.3 +++ b/man3/timeradd.3 @@ -96,8 +96,7 @@ zeros out the .I timeval structure pointed to by .IR tvp , -so that it represents the time at midnight -on the morning of 1 January 1970 (the Epoch). +so that it represents the Epoch: 1970-01-01 00:00:00 +0000 (UTC). .BR timerisset () returns true (nonzero) if either field of the |
