There is no simple way to do it. Search for the alarm clock examples. Here is a pretty comprehensive one: