summaryrefslogtreecommitdiff
path: root/time2posix.3
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2022-12-14 00:43:56 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2022-12-14 00:43:56 +0000
commit85639444f44f168af982f59143b53efbba37669e (patch)
tree05feba73aad64e84b00d35c2eeb48216bbbe4f7b /time2posix.3
parentcc16bfc34e07fede47a989d9552413c7b4d8e78e (diff)
Import tzcode 2022gvendor/tzcode/tzcode2022g
Diffstat (limited to 'time2posix.3')
-rw-r--r--time2posix.316
1 files changed, 8 insertions, 8 deletions
diff --git a/time2posix.3 b/time2posix.3
index 1fcdf9e55733..e13c431c85b9 100644
--- a/time2posix.3
+++ b/time2posix.3
@@ -1,9 +1,11 @@
-.TH TIME2POSIX 3
+.\" This file is in the public domain, so clarified as of
+.\" 1996-06-05 by Arthur David Olson.
+.TH time2posix 3
.SH NAME
time2posix, posix2time \- convert seconds since the Epoch
.SH SYNOPSIS
.nf
-.ie \n(.g .ds - \f(CW-\fP
+.ie \n(.g .ds - \f(CR-\fP
.el .ds - \-
.B #include <time.h>
.PP
@@ -58,7 +60,7 @@ expression for directly computing a time_t value from a given date/time,
and the same relationship is assumed by some
(usually older)
applications.
-Any programs creating/dissecting time_t's
+Any programs creating/dissecting time_t values
using such a relationship will typically not handle intervals
over leap seconds correctly.
.PP
@@ -93,7 +95,7 @@ Both of these are good indicators of the inferiority of the
POSIX representation.
.PP
The following table summarizes the relationship between a time
-T and it's conversion to,
+T and its conversion to,
and back from,
the POSIX representation over the leap second inserted at the end of June,
1993.
@@ -117,8 +119,8 @@ DATE TIME T X=time2posix(T) posix2time(X)
.fi
.PP
If leap-second support is not enabled,
-local time_t's and
-POSIX time_t's are equivalent,
+local time_t and
+POSIX time_t values are equivalent,
and both
.B time2posix
and
@@ -129,5 +131,3 @@ difftime(3),
localtime(3),
mktime(3),
time(2)
-.\" This file is in the public domain, so clarified as of
-.\" 1996-06-05 by Arthur David Olson.