<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi Elliot,<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">You mean set TZ first and add a line at the beginning of the program like tzset() and then test it?<o:p></o:p></p>
<p class="MsoNormal">Sounds reasonable.<o:p></o:p></p>
<p class="MsoNormal">I checked the manual it doesn’t tell me whether ctime() uses TZ or not. Could you tell me about that?<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Thanks for the help.<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Yuxi Wang<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> cs631apue-bounces@lists.stevens.edu &lt;cs631apue-bounces@lists.stevens.edu&gt; on behalf of Elliot Wasem &lt;ewasem@stevens.edu&gt;<br>
<b>Sent:</b> Tuesday, October 15, 2019 9:00:35 AM<br>
<b>To:</b> cs631apue@lists.stevens.edu &lt;cs631apue@lists.stevens.edu&gt;<br>
<b>Subject:</b> Re: [cs631apue] About test env TZ</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="auto">
<div>Hey Yuxi,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Check out &quot;man 7 environ&quot; (or is it&nbsp;man 7 environment?) for the format of the TZ variable.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I think I remember using tzset() (I forget if that's man 2 or man 3) to set the time zone for the program.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope that helps,</div>
<div dir="auto">Elliot<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019, 8:57 AM Yuxi Wang &lt;<a href="mailto:ywang286@stevens.edu">ywang286@stevens.edu</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US">
<div class="m_6047635217738741735WordSection1">
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Hello professor,</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Could you tell me how to test my program with TZ?</p>
<p class="MsoNormal">Just set the env using export TZ=GMT?</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Actually I use ctime(3) to get the time. Does it use TZ inside of it?</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Thank you</p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<p class="MsoNormal">Yuxi Wang</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>