Package net.fortuna.ical4j.model.property

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


      }

  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

    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

Related Classes of net.fortuna.ical4j.model.property.DtStart

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.