>>-init(atime,message)-----------------------------------------><
'hh:mm:ss') or as a number of seconds starting at the present time. If you use the date and time format, you can specify a date in the default format ('dd Mmm yyyy') after the time with a single blank separating the time and date. Leading and trailing whitespace characters are not allowed in the atime. If you do not specify a date, the Alarm uses the first future occurrence of the specified time. You can use the cancel() method to cancel a pending alarm. See Section 4.2.9, “Initialization” for more information.
Example 5.186. Class ALARM
/* Alarm Examples */
PersonalMessage=.MyMessageClass~new("Call the Bank")
msg=.message~new(PersonalMessage,"RemindMe")
time = .DateTime~fromIsoDate("2007-12-15T17:10:00.000000")
a=.alarm~new(time, msg)
exit
::class MyMessageClass public
::method init
expose inmsg
use arg inmsg
::method RemindMe
expose inmsg
say "It is now" "TIME"("C")".Please "inmsg
/* On the specified data and time, displays the following message: */
/* "It is now 5:10pm. Please Call the Bank" */
msg, a message object to run at the specified time. The following code sets up an alarm to run the msg message object in 30 seconds from the current time: