<span class="p">Eduardo,<br><br>In line 1398, 'szTemp + 448' is the pointer to the buffer, '16' is the maximum length to be written by CPLPrintTime, next is the the format. Don'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"><<a href="mailto:eduardo.ramalho@gmail.com">eduardo.ramalho@gmail.com</a>></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 "pcidskdataset.cpp" but I don't<br>
understand the "magic" numbers that appears "sztemp + XXX":<br>
<br>
Line 1396:<br>
CPLPrintStringFill( szTemp + 384,"GDAL: Image band created<br>
with GDAL", 64 );<br>
CPLPrintTime( szTemp + 448, 16, "%H:%M %d-%b-%y ", &oUpdateTime, "C" );<br>
CPLPrintStringFill( szTemp + 464, "", 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>