Package java.util

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


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

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

                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

            + " 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

                icalEvent.setDateEnd(thisTimeTo);                   
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));               
            }
            // Condition 2.
            else if (thisTimeFrom.before(icalDateStart)
            &&       thisTimeTo.after(icalDateEnd))
            {
                // Create event as is.
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));
            }   
            // Condition 3.
View Full Code Here

                // Create event as is.
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));
            }   
            // Condition 3.
            else if (thisTimeFrom.before(icalDateEnd)
            &&       thisTimeTo.after(icalDateEnd))
            {
                // Create event with end time as thisTimeTo, start time as speced.
                icalEvent.setDateStart(thisTimeFrom);
                icalEvent.setDateEnd(icalDateEnd);
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));
View Full Code Here

                icalEvent.setDateEnd(icalDateEnd);
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));
            }   
            // Condition 4.
            else if (thisTimeFrom.before(icalDateStart)
            &&       thisTimeTo.after(icalDateStart))
            {
                // Create event with starttime time as thisTimeFrom, end time as speced.
                icalEvent.setDateStart(icalDateStart);
                icalEvent.setDateEnd(thisTimeTo);
                FBString.append(createFBRow(formatter, icalEvent.getDateStart(), icalEvent.getDateEnd()));
View Full Code Here

                XMLString.append(icalEvent.toXML());
                XMLString.append("\n");
            }
            // Condition 2.
            else if (thisTimeFrom.before(icalDateStart)
            &&       thisTimeTo.after(icalDateEnd))
            {
                // Create event as is.
//                    XMLString.append("Cond2");
                XMLString.append("\t\t");
                XMLString.append(icalEvent.toXML());
View Full Code Here

                XMLString.append(icalEvent.toXML());
                XMLString.append("\n");
            }   
            // Condition 3.
            else if (thisTimeFrom.before(icalDateEnd)
            &&       thisTimeTo.after(icalDateEnd))
            {
                // Create event with end time as thisTimeTo, start time as speced.
//                    XMLString.append("Cond3" + thisTimeFrom + thisTimeTo);
                icalEvent.setDateStart(thisTimeFrom);
                icalEvent.setDateEnd(icalDateEnd);
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.