[gdal-dev] Design for sub-second accuracy in OGR ?

Mike Toews mwtoews at gmail.com
Mon Apr 6 16:15:17 PDT 2015


On 6 April 2015 at 09:39, Even Rouault <even.rouault at spatialys.com> wrote:
> I should have mentionned what currently exists indeed :
>
>     struct {
>         GInt16  Year;
>         GByte   Month;
>         GByte   Day;
>         GByte   Hour;
>         GByte   Minute;
>         GByte   Second;
>         GByte   TZFlag; /* 0=unknown, 1=localtime(ambiguous),
>                            100=GMT, 104=GMT+1, 80=GMT-5, etc */
>     } Date;

In regards to TZFlag, it should also be used to optionally convey
daylight savings information, where known. E.g. see the 'is_dst' in
struct tm [1]. I'm not sure if a GMT value can adequately convey this,
but correct me if it can.

[1] http://www.cplusplus.com/reference/ctime/tm/


More information about the gdal-dev mailing list