I indeed forgot a few things:

- you can get paper size in mm:
  unsigned long width = (unsigned long) nl_langinfo(_NL_PAPER_WIDTH);
  unsigned long height = (unsigned long) nl_langinfo(_NL_PAPER_HEIGHT);
- you can get first day of the week:
  unsigned first = * (unsigned char *) nl_langinfo(_NL_TIME_FIRST_WEEKDAY);
  (0 is sunday).
- you can easily parse dates according to localization thanks to strptime()
- you can get the current timezone thanks to #include <time.h> tzset();
  then read timezone which is « the difference, in seconds betwen UTC
  and local standard time ». I.e. here with GMT+0100 I get -3600.

Regards,
Samuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to