<span class="p">Eduardo,<br><br>In line 1398, &#39;szTemp + 448&#39; is the pointer to the buffer, &#39;16&#39; is the maximum length to be written by CPLPrintTime, next is the the format. Don&#39;t bother about the numbers 384, 448, 464, etc.<br>
</span><br><div class="gmail_quote">On Tue, Jun 22, 2010 at 9:49 PM, Eduardo Ramalho <span dir="ltr">&lt;<a href="mailto:eduardo.ramalho@gmail.com">eduardo.ramalho@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<br>
I am trying to print timestamps in WMS driver.<br>
I would like to use GDAL CPLPrintTime to do that.<br>
<br>
I searched for use samples and found &quot;pcidskdataset.cpp&quot; but I don&#39;t<br>
understand the &quot;magic&quot; numbers that appears &quot;sztemp + XXX&quot;:<br>
<br>
Line 1396:<br>
        CPLPrintStringFill( szTemp + 384,&quot;GDAL: Image band created<br>
with GDAL&quot;, 64 );<br>
        CPLPrintTime( szTemp + 448, 16, &quot;%H:%M %d-%b-%y &quot;, &amp;oUpdateTime, &quot;C&quot; );<br>
        CPLPrintStringFill( szTemp + 464, &quot;&quot;, 80 * 7 );<br>
<br>
Can someone give me a hint how to use it ?<br>
<br>
Regards,<br>
<br>
Edu<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>