Ver Fonte

Add an entry regarding localtime(), TZ, and timezone support.

Manuel Novoa III há 23 anos atrás
pai
commit
d3690d81d2
1 ficheiros alterados com 19 adições e 1 exclusões
  1. 19 1
      docs/uclibc.org/FAQ.html

+ 19 - 1
docs/uclibc.org/FAQ.html

@@ -238,7 +238,6 @@ to the uClibc home page.</a>
     to match your target system, and then run 'make'.
 
 
-
 <p>
 <TR><TD BGCOLOR="#ccccc0" ALIGN=left>
     <B>
@@ -314,6 +313,25 @@ to the uClibc home page.</a>
     cross compiling.
 
 
+<p>
+<TR><TD BGCOLOR="#ccccc0" ALIGN=left>
+    <B>
+    Why does localtime() return times in UTC even when I have my timezone set?
+    </B>
+</TD></TR>
+<TR><TD BGCOLOR="#eeeee0">
+
+
+    The uClibc time functions get timezone information from the TZ environment
+    variable, as described in the Single Unix Specification Version 3.  See
+     <a href="http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html">
+    http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html</a>
+    for details on valid settings of TZ.  For some additional examples, read
+    <a href="http://www.uclibc.org/lists/uclibc/2002-August/006261.html">
+    http://www.uclibc.org/lists/uclibc/2002-August/006261.html</a> in the uClibc
+    mailing list archive.
+
+
 <p>
 <TR><TD BGCOLOR="#ccccc0" ALIGN=left>
     <B>