Format of "__tzinfo_type tzinfo"

Heiko kzt8zyom@123mail.org
Wed Jun 4 06:51:00 GMT 2008


Hello,

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
Heiko

-- 
http://www.fastmail.fm - Access your email from home and the web



More information about the Newlib mailing list