Package java.util

Examples of java.util.Date.after()


        /* Feed was visited Two Weeks Ago */
        else if (date.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, news);

        /* Feed was visited Last Week */
        else if (date.after(lastWeek))
          new EntityGroupItem(gLastWeek, news);

        /* Feed was visited more than a Week ago */
        else
          new EntityGroupItem(gOlder, news);
View Full Code Here


        /* Feed was visited Today */
        else if (lastVisitDate.getTime() > todayMillis)
          new EntityGroupItem(gToday, mark);

        /* Feed was visited Yesterday */
        else if (lastVisitDate.after(yesterday))
          new EntityGroupItem(gYesterday, mark);

        /* Feed was visited Earlier this Week */
        else if (lastVisitDate.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, mark);
View Full Code Here

        /* Feed was visited Yesterday */
        else if (lastVisitDate.after(yesterday))
          new EntityGroupItem(gYesterday, mark);

        /* Feed was visited Earlier this Week */
        else if (lastVisitDate.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, mark);

        /* Feed was visited Last Week */
        else if (lastVisitDate.after(lastWeek))
          new EntityGroupItem(gLastWeek, mark);
View Full Code Here

        /* Feed was visited Earlier this Week */
        else if (lastVisitDate.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, mark);

        /* Feed was visited Last Week */
        else if (lastVisitDate.after(lastWeek))
          new EntityGroupItem(gLastWeek, mark);

        /* Feed was visited more than a Week ago */
        else
          new EntityGroupItem(gOlder, mark);
View Full Code Here

        /* Feed was visited Today */
        if (date.getTime() > todayMillis)
          new EntityGroupItem(gToday, news);

        /* Feed was visited Yesterday */
        else if (date.after(yesterday))
          new EntityGroupItem(gYesterday, news);

        /* Feed was visited Two Weeks Ago */
        else if (date.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, news);
View Full Code Here

        /* Feed was visited Yesterday */
        else if (date.after(yesterday))
          new EntityGroupItem(gYesterday, news);

        /* Feed was visited Two Weeks Ago */
        else if (date.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, news);

        /* Feed was visited Last Week */
        else if (date.after(lastWeek))
          new EntityGroupItem(gLastWeek, news);
View Full Code Here

        /* Feed was visited Two Weeks Ago */
        else if (date.after(earlierThisWeek))
          new EntityGroupItem(gEarlierThisWeek, news);

        /* Feed was visited Last Week */
        else if (date.after(lastWeek))
          new EntityGroupItem(gLastWeek, news);

        /* Feed was visited more than a Week ago */
        else
          new EntityGroupItem(gOlder, news);
View Full Code Here

    assertEquals("http://www.xmlhack.com/read.php?item=1612",
                 item.getLink().toString());
    assertEquals(196, item.getDescription().length());
    assertNotNull(item.getFound());
    Date now = new Date();
    assertTrue(now.after(item.getFound()));
  }

}
View Full Code Here

    synchronized (this.store) {
      Iterator <ScheduleSMS> it = this.store.getScheduleSMSList().iterator();
      Date nowDate = new Date();
      while(it.hasNext()){
        ScheduleSMS sc = it.next();
        if(nowDate.after(sc.getSendDate())){    //如果当前时间大于定时短信发送时间,删除这个定时短信
          it.remove();
        }
      }
    }
  }
View Full Code Here

                            templateCacheEntry = ref.get();
                            if (templateCacheEntry == null) templateCache.remove(targetFile);
                        }

                        final Date targetFileDate = new Date(targetFile.lastModified());
                        if (templateCacheEntry == null || targetFileDate.after(templateCacheEntry.lastModified)) {
                            // loading the content of the template file into
                            // a byte array
                        templateCacheEntry = new TemplateCacheEntry();
                            templateCacheEntry.lastModified = targetFileDate;
                            templateCacheEntry.content = FileUtils.read(targetFile);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.