aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 00:38:44 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 00:43:05 +0100
commit501934a934566c14b077fe68fc521de2cef76917 (patch)
tree8db770f4ecedf54aa3a3aa1a5b7d0ecdb42c5d9f
parent25a0440e45c9f8b692e8aba522b611c99d1647a7 (diff)
downloadman-pages-501934a934566c14b077fe68fc521de2cef76917.tar.gz
timegm.3: Expand DESCRIPTION a little
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/timegm.37
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/timegm.3 b/man3/timegm.3
index ed80cdbe41..48e029effb 100644
--- a/man3/timegm.3
+++ b/man3/timegm.3
@@ -54,6 +54,13 @@ are the inverses of
.BR localtime (3)
and
.BR gmtime (3).
+Both functions take a broken-down time and convert it to calendar time
+(seconds since the Epoch, 1970-01-01 00:00:00 +0000, UTC).
+The difference between the two functions is that
+.BR timelocal ()
+takes the local timezone into account when doing the conversion, while
+.BR timegm ()
+takes the input value to be Coordinated Universal Time (UTC).
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).