1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>RTC_ConvertSecondToDateTime</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">RTC_ConvertSecondToDateTime <img src="../image/NTR.gif" align="middle"><img src="../image/TWL.gif" align="middle"></h1> 15 16<h2>Syntax</h2> 17 18<dl> 19 <dd> 20<CODE>#include <nitro/rtc.h></CODE><BR> 21 <PRE><CODE>void RTC_ConvertSecondToDateTime( <A href="RTCDate.html">RTCDate</A>* date , <A href="RTCTime.html">RTCTime</A>* time, s64 sec );</CODE></PRE> 22 </dd> 23 24</dl><h2>Arguments</h2> 25<TABLE border="1" width="100%"> 26 <TBODY> 27 <TR> 28 <TD width="300"><em><strong><font face="Courier New">date</font></strong></em></TD> 29 <TD width="700">Pointer to the buffer storing the date data.</TD> 30 </TR> 31 <TR> 32 <TD><em><strong><font face="Courier New">time</font></strong></em></TD> 33 <TD>Pointer to the buffer storing the time data.</TD> 34 </TR> 35 <TR> 36 <TD><em><strong><font face="Courier New">sec</font></strong></em></TD> 37 <TD>The total elapsed number of seconds, using January 1, 2000, 12:00.00 a.m. as 0.</TD> 38 </TR> 39 </TBODY> 40</TABLE> 41 42<h2>Return Values</h2> 43<p>None.</p> 44 45<H2>Description</H2> 46<P>This function converts the total elapsed number of seconds, using January 1, 2000, 12:00.00 a.m. as 0 to the <A href="RTCDate.html"><CODE>RTCDate</CODE></A> and <A href="RTCTime.html"><CODE>RTCTime</CODE></A> types. <em><strong><CODE>sec</CODE></strong></em> must be 0 or more and 3155759999 or lower. If less than 0 it is changed to 0 and if more than 3155759999 it is changed to 3155759999. Then the result is returned.</P> 47 48<h2>See Also</h2> 49<P><CODE><A href="RTC_ConvertDateTimeToSecond.html">RTC_ConvertDateTimeToSecond</A>, <A href="RTCDate.html">RTCDate</A>, <A href="RTCTime.html">RTCTime</A></CODE></P> 50 51<H2>Revision History</H2> 52<P> 532005/05/17 Initial version. 54</P> 55<hr><p>CONFIDENTIAL</p></body> 56</html> 57