Format of "__tzinfo_type tzinfo"

Wed Jun 4 06:51:00 GMT 2008


I´ll use the time-functions from newlib.
Can somebody explain me the meaning of the elements from "__tzinfo_type
tzinfo" (\libc\time\gettzinfo.c)?

  typedef struct __tzrule_struct
    char ch;
    int m;
    int n;
    int d;
    int s;
    time_t change;
    long offset; /* Match type of _timezone. */
  } __tzrule_type;

  typedef struct __tzinfo_struct
    int __tznorth;
    int __tzyear;
    __tzrule_type __tzrule[2];
  } __tzinfo_type;

I need it for conversion from UTZ to CET/CEST.

Thanks and wbr

-- - Access your email from home and the web

More information about the Newlib mailing list