[gdal-dev] How to use CPLPrintTime ?

Chaitanya kumar CH chaitanya.ch at gmail.com
Tue Jun 22 13:58:39 EDT 2010


Eduardo,

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.

On Tue, Jun 22, 2010 at 9:49 PM, Eduardo Ramalho
<eduardo.ramalho at gmail.com>wrote:

> Hi!
>
> I am trying to print timestamps in WMS driver.
> I would like to use GDAL CPLPrintTime to do that.
>
> I searched for use samples and found "pcidskdataset.cpp" but I don't
> understand the "magic" numbers that appears "sztemp + XXX":
>
> Line 1396:
>        CPLPrintStringFill( szTemp + 384,"GDAL: Image band created
> with GDAL", 64 );
>        CPLPrintTime( szTemp + 448, 16, "%H:%M %d-%b-%y ", &oUpdateTime, "C"
> );
>        CPLPrintStringFill( szTemp + 464, "", 80 * 7 );
>
> Can someone give me a hint how to use it ?
>
> Regards,
>
> Edu
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100622/98052afb/attachment.html


More information about the gdal-dev mailing list