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_GetDateTime</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">RTC_GetDateTime <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><A href="RTCResult.html">RTCResult</A> RTC_GetDateTime( <A href="RTCDate.html">RTCDate</A>* date ,<A href="RTCTime.html">RTCTime</A>* time );</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 where date information will be stored.</TD> 30 </TR> 31 <TR> 32 <TD><em><strong><font face="Courier New">time</font></strong></em></TD> 33 <TD>Pointer to the buffer where time information will be stored.</TD> 34 </TR> 35 </TBODY> 36</TABLE> 37 38<h2>Return Values</h2> 39<p>If the request succeeds, it returns 0. If the request fails, it returns a numeric value other than 0.</p> 40 41<h2>Description</h2> 42<P>This function reads date and time data from the real time clock. It queries ARM7 for date and time data, stores the information to caller-specified storage, and returns. This is a synchronous version of the <code><A href="RTC_GetDateTimeAsync.html">RTC_GetDateTimeAsync</A></code> function.</P> 43 44<h2>Note</h2> 45<P><FONT color=red>This function requires a PXI interrupt for synchronization; do not call it when PXI interrupts are prohibited.</FONT></P> 46 47<h2>See Also</h2> 48<P><code><a href="RTC_GetDateTimeAsync.html">RTC_GetDateTimeAsync</a>, <a href="RTC_SetDateTime.html">RTC_SetDateTime</a>, <a href="RTC_SetDateTimeAsync.html">RTC_SetDateTimeAsync</a>, <a href="RTCResult.html">RTCResult</a>, <a href="RTCDate.html">RTCDate</a>, <a href="RTCTime.html">RTCTime</a></code></P> 49 50<H2>Revision History</H2> 51<P> 522005/03/08 Standardized the Japanese term for "interrupt."<br> 2004/05/18 Initial version.</P> 53<hr><p>CONFIDENTIAL</p></body> 54</html> 55