Examples of after()


Examples of java.util.Date.after()

        /* 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

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

Examples of java.util.Date.after()

    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

Examples of java.util.Date.after()

    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

Examples of java.util.Date.after()

                            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

Examples of java.util.Date.after()

                while (mapIterator.hasNext()) {
                    row = mapIterator.next();
                    if (row == null) continue;
                    final Date date_next_exec = row.get(WorkTables.TABLE_API_COL_DATE_NEXT_EXEC, (Date) null);
                    if (date_next_exec == null) continue;
                    if (date_next_exec.after(now)) continue;
                    pks.add(UTF8.String(row.getPK()));
                }
            } catch (final IOException e) {
                Log.logException(e);
            }
View Full Code Here

Examples of java.util.Date.after()

            Date d = task.getEnd().getTime();
            if (res == null) {
                res = d;
                continue;
            }
            if (d.after(res))
                res = d;
        }
        return res;
    }
View Full Code Here

Examples of java.util.Date.after()

                // the url was already loaded. we need to check the date
                final URIMetadataRow oldEntry = this.sb.indexSegments.urlMetadata(Segments.Process.LOCALCRAWLING).load(nexturlhash);
                if (oldEntry != null) {
                    final Date modDate = oldEntry.moddate();
                    // check if modDate is null
                    if (modDate.after(lastMod)) return;
                }
            }
        }

        // URL needs to crawled
View Full Code Here

Examples of java.util.Date.after()

                Date d = responseHeader.lastModified();
                if (d == null) {
                    d = new Date(GenericFormatter.correctedUTCTime());
                }
                // finally, we shall treat the cache as stale if the modification time is after the if-.. time
                if (d.after(ifModifiedSince)) {
                    //System.out.println("***not indexed because if-modified-since");
                    return "Stale_(Last-Modified>Modified-Since)";
                }
            }

View Full Code Here

Examples of java.util.Date.after()

            + " Repeat Unit "+icalEvent.getRepeatRules().dateRepeatUnit);

                Date repeatUntilDate = icalEvent.getRepeatRules().repeatUntilDate;
                if (repeatUntilDate == null)
                    repeatUntilDate = dateTo;
                if (repeatUntilDate.after(dateTo))
                    repeatUntilDate = dateTo;

                // In case we are creating up to a counter point, record the
                // count of events for this loop.
                int createCtr = 0;
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.