24 lines
443 B
C
24 lines
443 B
C
#include <stdio.h>
|
|
#include <proto/exec.h>
|
|
#include "clib/timezone.h"
|
|
#include "inline/timezone.h"
|
|
|
|
struct Library *TimezoneBase;
|
|
|
|
int main()
|
|
{
|
|
time_t rawtime;
|
|
|
|
TimezoneBase = OpenLibrary("timezone.library", 3L);
|
|
if (!TimezoneBase) {
|
|
printf("Cannot open timezone library.\n");
|
|
return 5;
|
|
}
|
|
|
|
time(&rawtime);
|
|
printf("Rawtime (time): %ld\n", (long)rawtime);
|
|
|
|
CloseLibrary(TimezoneBase);
|
|
return 0;
|
|
}
|