While the completeness of the iCalendar specification makes it useful for just about any time based event, with the iAlarmClock we only have one pressing concern: when should the alarm go off?
虽然完整的说明书规定了ICalendar对所有的日期有关的事件都管用,我们最关心的只是:闹铃什么时候会响?
So, just for the sake of completeness, let me just write down what we would do.
为了完整,让我们把它写出来。
We could have used a prepared statement and just reset the data each time, but we decided to recreate it for each iteration of the loop here for completeness.
我们本可以使用一个预编译语句并且每次重新设置数据,但是为了保持完整性,我们决定在每次循环的时候重新创建它。
We could have used a prepared statement and just reset the data each time, but we decided to recreate it for each iteration of the loop here for completeness.
我们本可以使用一个预编译语句并且每次重新设置数据,但是为了保持完整性,我们决定在每次循环的时候重新创建它。
应用推荐