43 #if defined(OPSYS_SUN)
60 struct tm *SystemDate;
62 gettimeofday(&tv, NULL);
66 SystemDate = localtime_r((time_t *)&tv.tv_sec, &SD);
68 SystemDate = localtime((time_t *)&tv.tv_sec);
71 Date->
hours = SystemDate->tm_hour;
72 Date->
minutes = SystemDate->tm_min;
73 Date->
seconds = SystemDate->tm_sec;
75 Date->
day = SystemDate->tm_mday;
76 Date->
month = ++SystemDate->tm_mon;
77 Date->
year = SystemDate->tm_year + 1900;
82 GMTDate = gmtime_r((time_t *)&tv.tv_sec, &GD);
84 GMTDate = gmtime((time_t *)&tv.tv_sec);
107 int msecInADay = 86400000;
110 context->SetObjectVariable(
"EVENTSEMHANDLE", context->NewPointer(&sem));
111 context->SetObjectVariable(
"TIMERSTARTED", context->True());
118 if (sem.
wait(
"alarm_startTimer", 0, msecInADay))
121 RexxObjectPtr cancelObj = context->GetObjectVariable(
"CANCELED");
123 if (cancelObj == context->True())
136 sem.
wait(
"alarm_startTimer", 0, alarmtime);
void wait(const char *ds, int di)
static void getCurrentTime(RexxDateTime *Date)
struct _RexxObjectPtr * RexxObjectPtr
RexxMethod1(int, alarm_stopTimer, POINTER, eventSemHandle)
RexxMethod2(int, alarm_startTimer, wholenumber_t, numdays, wholenumber_t, alarmtime)