/** * Constructs a new DtEnd with the specified time. * * @param time the time of the DtEnd * @param utc specifies whether time is UTC */ public DtEnd(final Date time, final boolean utc) { super(DTEND, new Factory()); setDate(time); setUtc(utc); }
/** * Constructs a new DtEnd with the specified time. * * @param time the time of the DtEnd * @param utc specifies whether time is UTC */ public DtEnd(final Date time, final boolean utc) { super(DTEND, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
/** * Constructs a new DtEnd with the specified time. * * @param time the time of the DtEnd * @param utc specifies whether time is UTC */ public DtEnd(final Date time, final boolean utc) { super(DTEND, new Factory()); setDate(time); setUtc(utc); }
/** * Constructs a new DtEnd with the specified time. * @param time the time of the DtEnd * @param utc specifies whether time is UTC */ public DtEnd(final Date time, final boolean utc) { super(DTEND, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
/** * Constructs a new DtEnd with the specified time. * * @param time the time of the DtEnd * @param utc specifies whether time is UTC */ public DtEnd(final Date time, final boolean utc) { super(DTEND, PropertyFactoryImpl.getInstance()); setDate(time); setUtc(utc); }
/** * Convenience method to pull the DTEND out of the property list. If DTEND was not specified, use the DTSTART + * DURATION to calculate it. * @param deriveFromDuration specifies whether to derive an end date from the event duration where an end date is * not found * @return The end for this VEVENT. */ public final DtEnd getEndDate(final boolean deriveFromDuration) { DtEnd dtEnd = (DtEnd) getProperty(Property.DTEND); // No DTEND? No problem, we'll use the DURATION. if (dtEnd == null && deriveFromDuration && getDuration() != null) { final DtStart dtStart = getStartDate(); final Duration vEventDuration = getDuration(); dtEnd = new DtEnd(Dates.getInstance(vEventDuration.getDuration() .getTime(dtStart.getDate()), (Value) dtStart .getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true); } } return dtEnd; }
dtStart.getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true); } else { dtEnd.setTimeZone(dtStart.getTimeZone());
dtStart.getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true); } else { dtEnd.setTimeZone(dtStart.getTimeZone());
private BwDateTime addDuration(final Dur val) throws CalFacadeException { DtEnd dtEnd; java.util.Date endDt = val.getTime(makeDate()); DtStart dtStart = makeDtStart(Timezones.getTzRegistry()); if (getDateType()) { dtEnd = new DtEnd(new Date(endDt)); addIcalParameter(dtEnd, Value.DATE); } else { DateTime d = new DateTime(endDt); Parameter tzid = getIcalParameter(dtStart, "TZID"); if (tzid != null) { DateTime sd = (DateTime)dtStart.getDate(); d.setTimeZone(sd.getTimeZone()); } // dtEnd = new DtEnd(d, dtStart.isUtc()); dtEnd = new DtEnd(d); if (tzid != null) { addIcalParameter(dtEnd, tzid); } else if (dtStart.isUtc()) { dtEnd.setUtc(true); } } return makeBwDateTime(dtEnd); }
addIcalParameter(dtEnd, tzid); } else if (dtStart.isUtc()) { dtEnd.setUtc(true);
.getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true);
.getParameter(Parameter.VALUE))); if (dtStart.isUtc()) { dtEnd.setUtc(true);
dtEnd.setUtc(true); log.info(dtEnd.toString()); suite.addTest(new DtEndTest("testValidation", dtEnd));
DtEnd dtend = val.getDtend().makeDtEnd(tzreg); if (freeBusy | val.getForceUTC()) { dtend.setUtc(true);
if (newdtwenddate instanceof DateTime && (((DateTime)newdtwenddate).getTimeZone() != null)) { newdtend.setUtc(true);
if (newdtwenddate instanceof DateTime && (((DateTime)newdtwenddate).getTimeZone() != null)) { newdtend.setUtc(true);