Examples of toJavaDate()


Examples of com.google.enterprise.connector.notes.client.NotesDateTime.toJavaDate()

    final String METHOD = "setDateProperties";

    NotesDateTime dt = (NotesDateTime) crawlDoc
        .getItemValueDateTimeArray(NCCONST.ITM_GMETALASTUPDATE).elementAt(0);
    Calendar tmpCal = Calendar.getInstance();
    tmpCal.setTime(dt.toJavaDate());
    docProps.put(SpiConstants.PROPNAME_LASTMODIFIED,
        asList(Value.getDateValue(tmpCal)));
    LOGGER.logp(Level.FINEST, CLASS_NAME, METHOD,
        "Last update is " + tmpCal.toString());
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDateTime.toJavaDate()

        asList(Value.getDateValue(tmpCal)));
    LOGGER.logp(Level.FINEST, CLASS_NAME, METHOD,
        "Last update is " + tmpCal.toString());

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd' 'HH:mm:ss' 'Z");
    String nclastupdate = sdf.format(dt.toJavaDate());
    docProps.put(NCCONST.PROPNAME_NCLASTUPDATE,
        asList(Value.getStringValue(nclastupdate)));
    dt.recycle();

    NotesDateTime createdate = (NotesDateTime) crawlDoc
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDateTime.toJavaDate()

        asList(Value.getStringValue(nclastupdate)));
    dt.recycle();

    NotesDateTime createdate = (NotesDateTime) crawlDoc
        .getItemValueDateTimeArray(NCCONST.ITM_GMETACREATEDATE).elementAt(0);
    String nccreatedate = sdf.format(createdate.toJavaDate());
    docProps.put(NCCONST.PROPNAME_CREATEDATE,
        asList(Value.getStringValue(nccreatedate)));
    createdate.recycle();
  }
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

      String firstDt = firstDoc.getFirstItem("Date").getText();
      String secondDt = secondDoc.getFirstItem("Date").getText();
      firstDate = s.createDateTime(firstDt);
      secondDate = s.createDateTime(secondDt);
      Date firstDateJ = firstDate.toJavaDate();
      Date secondDateJ = secondDate.toJavaDate();
      sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("
          + secondDoc.getUniversalID() + ")...");
      if (firstDateJ.before(secondDateJ)) {
        sb.append("first before second");
      } else {
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

      String firstDt = firstDoc.getFirstItem("Date").getText();
      String secondDt = secondDoc.getFirstItem("Date").getText();
      firstDate = s.createDateTime(firstDt);
      secondDate = s.createDateTime(secondDt);
      Date firstDateJ = firstDate.toJavaDate();
      Date secondDateJ = secondDate.toJavaDate();
      sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("
          + secondDoc.getUniversalID() + ")...");
      if (firstDateJ.after(secondDateJ)) {
        sb.append("first after second");
      } else {
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

      String firstDt = firstDoc.getFirstItem("Date").getText();
      String secondDt = secondDoc.getFirstItem("Date").getText();
      firstDate = s.createDateTime(firstDt);
      secondDate = s.createDateTime(secondDt);
      Date firstDateJ = firstDate.toJavaDate();
      Date secondDateJ = secondDate.toJavaDate();
      sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("
          + secondDoc.getUniversalID() + ")...");
      if (firstDateJ.equals(secondDateJ)) {
        sb.append("first is the same date/time as second");
      } else {
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

      Calendar c2 = GregorianCalendar.getInstance();
      c1.setTime(firstDate.toJavaDate());
      c1.set(Calendar.DAY_OF_MONTH, 1);
      c1.set(Calendar.MONTH, 0);
      c1.set(Calendar.YEAR, 2000);
      c2.setTime(secondDate.toJavaDate());
      c2.set(Calendar.DAY_OF_MONTH, 1);
      c2.set(Calendar.MONTH, 0);
      c2.set(Calendar.YEAR, 2000);
      sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("
          + secondDoc.getUniversalID() + ")...");
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

      c1.setTime(firstDate.toJavaDate());
      c1.set(Calendar.HOUR_OF_DAY, 0);
      c1.set(Calendar.MINUTE, 0);
      c1.set(Calendar.SECOND, 0);
      c1.set(Calendar.MILLISECOND, 0);
      c2.setTime(secondDate.toJavaDate());
      c2.set(Calendar.HOUR_OF_DAY, 0);
      c2.set(Calendar.MINUTE, 0);
      c2.set(Calendar.SECOND, 0);
      c2.set(Calendar.MILLISECOND, 0);
      sb.append("Comparing " + firstDt + " (" + firstDoc.getUniversalID() + ") with " + secondDt + " ("
View Full Code Here

Examples of lotus.domino.DateTime.toJavaDate()

    Calendar result=null;
   
    if(null != someItem && someItem.getType()==Item.DATETIMES) {
      someDate=someItem.getDateTimeValue();
      result=Calendar.getInstance();
      result.setTime(someDate.toJavaDate());
    }

    if(someItem!=null) someItem.recycle();
    if(someDate!=null) someDate.recycle();
   
View Full Code Here

Examples of org.openntf.domino.DateTime.toJavaDate()

    Database currDb = s.getCurrentDatabase();
    View contacts = currDb.getView("AllContacts");
    Document doc = contacts.getFirstDocument();
    DateTime created = doc.getCreated();
    SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy hh:mm");
    String formatted = format.format(created.toJavaDate());
    ExtLibUtil.getViewScope().put("javaTest", formatted);
  }

  public void getOtherDates() {
    Session s = Factory.getSession();
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.