0

我已经添加了日期列表,并且我想在当前日期与列表中的日期相遇时进行活动。时间开始,然后我添加了时间列表。

public void playsound(String value  ) {

    Time time = new Time();

    //1day
     time.set(0, 3, 11, 9, 7, 2013);
     time.set(0, 3, 18, 9, 7, 2013);
     time.set(0, 5, 0, 9, 7, 2013);
     time.set(0, 12, 1, 9, 7, 2013);
     time.set(0, 3, 37, 9, 7, 2013);
     time.set(0, 7, 0, 9, 7, 2013);
     time.set(0, 8, 32, 9, 7, 2013);
     //2day
     time.set(0, 3, 11, 10, 7, 2013);
     time.set(0, 3, 18, 10, 7, 2013);
     time.set(0, 5, 0, 10, 7, 2013);
     time.set(0, 12, 1, 10, 7, 2013);
     time.set(0, 3, 37, 10, 7, 2013);
     time.set(0, 7, 0, 10, 7, 2013);
     time.set(0, 8, 31, 10, 7, 2013);

     //I need to add event when current date to the date in the list

}

4

0 回答 0