Examples of DtStart


Examples of net.fortuna.ical4j.model.property.DtStart

                description = "";
            }
            java.util.Calendar c = DateUtil.toCalendar(nicolive.getOpenTime());
            c.setTimeZone(timezone);
            properties.add(new Description(description));
            properties.add(new DtStart(new DateTime(c.getTime()), true));
            properties.add(new DtEnd(new DateTime(c.getTime()), true));
            try {
                URI uri = new URI(nicolive.getLink().getValue());
                properties.add(new Url(uri));
            } catch (URISyntaxException e) {
View Full Code Here

Examples of net.fortuna.ical4j.model.property.DtStart

        endDate.set(java.util.Calendar.SECOND, 0);

        // Create the event
        PropertyList propertyList = new PropertyList();
        propertyList.add(new DtStamp("20130324T180000Z"));
        propertyList.add(new DtStart(new DateTime(startDate.getTime())));
        propertyList.add(new DtEnd(new DateTime(endDate.getTime())));
        propertyList.add(new Summary("Progress Meeting"));
        VEvent meeting = new VEvent(propertyList);

        // add timezone info..
View Full Code Here

Examples of net.fortuna.ical4j.model.property.DtStart

    CompatibilityHints.setHintEnabled(
        CompatibilityHints.KEY_OUTLOOK_COMPATIBILITY, true);
    VEvent meeting = new VEvent();
    meeting.getProperties().add(new Summary(subject));
    meeting.getProperties().add(new Description(content));
    meeting.getProperties().add(new DtStart(new DateTime(start)));
    meeting.getProperties().add(new DtEnd(new DateTime(end)));
    if (location != null) {
      meeting.getProperties().add(new Location(location));
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.DtStart

      }

  public static TeamEventDO createTeamEventDO(final VEvent event)
  {
    final TeamEventDO teamEvent = new TeamEventDO();
    final DtStart dtStart = event.getStartDate();
    final String value = dtStart.toString();
    if (value.indexOf("VALUE=DATE") >= 0) {
      teamEvent.setAllDay(true);
    }
    Timestamp timestamp = ICal4JUtils.getSqlTimestamp(dtStart.getDate());
    teamEvent.setStartDate(timestamp);
    if (teamEvent.isAllDay() == true) {
      final org.joda.time.DateTime jodaTime = new org.joda.time.DateTime(event.getEndDate().getDate());
      final net.fortuna.ical4j.model.Date fortunaEndDate = new net.fortuna.ical4j.model.Date(jodaTime.plusDays(-1).toDate());
      timestamp = new Timestamp(fortunaEndDate.getTime());
View Full Code Here

Examples of net.fortuna.ical4j.model.property.DtStart

    CompatibilityHints.setHintEnabled(
        CompatibilityHints.KEY_OUTLOOK_COMPATIBILITY, true);
    VEvent meeting = new VEvent();
    meeting.getProperties().add(new Summary(subject));
    meeting.getProperties().add(new Description(content));
    meeting.getProperties().add(new DtStart(new DateTime(start)));
    meeting.getProperties().add(new DtEnd(new DateTime(end)));
    if (location != null) {
      meeting.getProperties().add(new Location(location));
    }
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.