The following example illustrates the Rational Statemate callback and set commands.
Initially the system time and date are sensed from the operating system and then passed to the Rational Statemate model by using the seti command.
The use of condition callbacks monitor the
SOUND_FLAG
conditions inside the Rational Statemate model and then call their respective function routine to pass a desired sound file to the sound device driver.locTime = *localtime( <ime ); /* convert to struct
tm in local time */UTCtime = *gmtime( <ime ); /* convert to struct
tm in UTC/GMT */