Complete example to use AlarmManager in Android.
Follow this tutorial, read,understand and implement.
You should not go with a thought to create a self program or service to check the timings each second else it will eat up all the battery the best solution is to use AlarmManager.