Package org.archive.wayback.util

Examples of org.archive.wayback.util.Timestamp


    } else {
      data.remove(key);
    }
  }
  protected String dateToTS(Date date) {
    return new Timestamp(date).getDateStr();
  }
View Full Code Here


    return get(results, wbRequest, null);
  }

  public static ArrayList<ResultsPartition> get(CaptureSearchResults results,
        WaybackRequest wbRequest, ResultsPartitioner defaultPartitioner) { 
    Timestamp startTS = Timestamp.parseBefore(results.getFilter(
        WaybackRequest.REQUEST_START_DATE));
    Timestamp endTS = Timestamp.parseAfter(results.getFilter(
        WaybackRequest.REQUEST_END_DATE));
   
    String rsd = startTS.getDateStr();
    String red = endTS.getDateStr();

    Date startDate = startTS.getDate();
    Date endDate = endTS.getDate();

    long msSpanned = endDate.getTime() - startDate.getTime();
    int secsSpanned = (int) Math.ceil(msSpanned / 1000);

    ResultsPartitioner partitioner = defaultPartitioner;
View Full Code Here

  }
  public Date getEndDate() {
    return Timestamp.parseAfter(get(REQUEST_END_DATE)).getDate();
  }
  public void setEndDate(Date date) {
    put(REQUEST_END_DATE,new Timestamp(date).getDateStr());
  }
View Full Code Here

  }
  public Date getStartDate() {
    return Timestamp.parseBefore(get(REQUEST_START_DATE)).getDate();
  }
  public void setStartDate(Date date) {
    put(REQUEST_START_DATE,new Timestamp(date).getDateStr());
  }
View Full Code Here

  }
  public Date getReplayDate() {
    return Timestamp.parseAfter(get(REQUEST_DATE)).getDate();
  }
  public void setReplayDate(Date date) {
    put(REQUEST_DATE,new Timestamp(date).getDateStr());
  }
View Full Code Here

  }
  public Date getAnchorDate() {
    return Timestamp.parseAfter(get(REQUEST_ANCHOR_DATE)).getDate();
  }
  public void setAnchorDate(Date date) {
    put(REQUEST_ANCHOR_DATE,new Timestamp(date).getDateStr());
  }
View Full Code Here

  }
  /**
   * @return Returns the firstResult Date.
   */
  public Date getFirstResultDate() {
    return new Timestamp(firstResultTimestamp).getDate();
  }
View Full Code Here

  public String getLastResultTimestamp() {
    return lastResultTimestamp;
  }
 
  public Date getLastResultDate() {
    return new Timestamp(lastResultTimestamp).getDate();
  }
View Full Code Here

TOP

Related Classes of org.archive.wayback.util.Timestamp

Copyright © 2018 www.massapicom. 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.