Package com.google.api.client.util

Examples of com.google.api.client.util.DateTime


    LOG.info("Deleted Google appointment " + appointment.getSummary());
  }

  private DateTime convertToDateTime(final org.joda.time.DateTime date) {
    return new DateTime(date.getMillis());
  }
View Full Code Here


  private DateTime convertToDateTime(final org.joda.time.DateTime date) {
    return new DateTime(date.getMillis());
  }

  private DateTime convertToDate(final org.joda.time.DateTime date) {
    return new DateTime(true, date.getMillis(), null);
  }
View Full Code Here

                rd.setSecurityDenyACL(RepositoryDocument.SECURITY_TYPE_DOCUMENT,denyAclArray);
              }

              // Now do standard stuff
              String mimeType = googleFile.getMimeType();
              DateTime createdDate = googleFile.getCreatedDate();
              DateTime modifiedDate = googleFile.getModifiedDate();
              String extension = googleFile.getFileExtension();
              String title = googleFile.getTitle();
             
              if (mimeType != null)
                rd.setMimeType(mimeType);
              if (createdDate != null)
                rd.setCreatedDate(new Date(createdDate.getValue()));
              if (modifiedDate != null)
                rd.setModifiedDate(new Date(modifiedDate.getValue()));
              if (extension != null)
              {
                if (title == null)
                  title = "";
                rd.setFileName(title + "." + extension);
View Full Code Here

                rd.setSecurityDenyACL(RepositoryDocument.SECURITY_TYPE_DOCUMENT,denyAclArray);
              }

              // Now do standard stuff
              String mimeType = googleFile.getMimeType();
              DateTime createdDate = googleFile.getCreatedDate();
              DateTime modifiedDate = googleFile.getModifiedDate();
              String extension = googleFile.getFileExtension();
              String title = googleFile.getTitle();
             
              if (mimeType != null)
                rd.setMimeType(mimeType);
              if (createdDate != null)
                rd.setCreatedDate(new Date(createdDate.getValue()));
              if (modifiedDate != null)
                rd.setModifiedDate(new Date(modifiedDate.getValue()));
              if (extension != null)
              {
                if (title == null)
                  title = "";
                rd.setFileName(title + "." + extension);
View Full Code Here

                rd.setSecurityDenyACL(RepositoryDocument.SECURITY_TYPE_DOCUMENT,denyAclArray);
              }

              // Now do standard stuff
              String mimeType = googleFile.getMimeType();
              DateTime createdDate = googleFile.getCreatedDate();
              DateTime modifiedDate = googleFile.getModifiedDate();
              String extension = googleFile.getFileExtension();
              String title = googleFile.getTitle();
             
              if (mimeType != null)
                rd.setMimeType(mimeType);
              if (createdDate != null)
                rd.setCreatedDate(new Date(createdDate.getValue()));
              if (modifiedDate != null)
                rd.setModifiedDate(new Date(modifiedDate.getValue()));
              if (extension != null)
              {
                if (title == null)
                  title = "";
                rd.setFileName(title + "." + extension);
View Full Code Here

        final Integer buildNumber = Integer.valueOf(build.getBuildNumber());

        final TestReport testReport = new TestReport().
                setBuildTypeId(buildTypeExternalId).
                setBuildId(buildNumber).
                setBuildDate(new DateTime(build.getStartDate())).
                setBuildDuration(build.getDuration()).
                setNumberOfFailedTests(fullBuildStatistics.getFailedTestCount()).
                setNumberOfIgnoredTests(fullBuildStatistics.getIgnoredTestCount()).
                setNumberOfPassedTests(fullBuildStatistics.getPassedTestCount());
View Full Code Here

    }
    if (location != null) {
      event.setLocation(location);
    }

    DateTime start = new DateTime(startDate, TimeZone.getTimeZone("UTC"));
    event.setStart(new EventDateTime().setDateTime(start));
    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
View Full Code Here

    }
    if (location != null) {
      event.setLocation(location);
    }

    DateTime start = new DateTime(startDate, TimeZone.getTimeZone("UTC"));
    event.setStart(new EventDateTime().setDateTime(start));
    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
View Full Code Here

TOP

Related Classes of com.google.api.client.util.DateTime

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.