_tz_structs.h 540 B

123456789101112131415161718192021222324
  1. #ifndef _SYS__TZ_STRUCTS_H_
  2. #define _SYS__TZ_STRUCTS_H_
  3. typedef struct __tzrule_struct
  4. {
  5. char ch;
  6. int m; /* Month of year if ch=M */
  7. int n; /* Week of month if ch=M */
  8. int d; /* Day of week if ch=M, day of year if ch=J or ch=D */
  9. int s; /* Time of day in seconds */
  10. time_t change;
  11. long offset; /* Match type of _timezone. */
  12. } __tzrule_type;
  13. typedef struct __tzinfo_struct
  14. {
  15. int __tznorth;
  16. int __tzyear;
  17. __tzrule_type __tzrule[2];
  18. } __tzinfo_type;
  19. __tzinfo_type *__gettzinfo (void);
  20. #endif /* _SYS__TZ_STRUCTS_H_ */