<div>The test file is:</div>
<div>&nbsp;</div>
<div>
<p>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;unistd.h&gt;<br>#include &lt;string.h&gt;<br>#include &lt;time.h&gt;</p>
<p>int main()<br>{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time_t p_atime;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char * optarg = &quot;20051207153440&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct tm tm;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strptime(optarg, &quot;%Y%m%d%H%M%S&quot;, &amp;tm);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p_atime = mktime(&amp;tm);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&quot;1133969680\n%d\n&quot;, p_atime);
</p>
<p>}<br></p><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/29/05, <b class="gmail_sendername">Yuan MailList</b> &lt;<a href="mailto:yuan.maillist@gmail.com">yuan.maillist@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>The mktime() is used in auditreduce.c. But mktime() always return -1. </div>
<div>After google the reason, I can not find a way to resolve this problem.</div>
<div>Please tell me how to do? thanks.</div></blockquote></div><br>