#include <linux/time.h>

main()
  {
  struct timeval tvbuf;
  struct timezone tzbuf;
  
  gettimeofday(&tvbuf, &tzbuf);
  
  printf("Aktualny czas UTC i strefa czasowa:\n");
  printf("	xtime . tv_sec = %ld\n", tvbuf . tv_sec);
  printf("	xtime . tv_usec = %ld\n", tvbuf . tv_usec);
  printf("	sys_tz . tz_minuteswest = %ld\n", tzbuf . tz_minuteswest);
  printf("	sys_tz . tz_dsttime = %ld\n", tzbuf . tz_dsttime);
  }