/** * @param utc * indicates if the date is in UTC time */ public DateTime(final boolean utc) { this(); setUtc(utc); }
/** * @param utc indicates if the date is in UTC time */ public DateTime(final boolean utc) { this(); setUtc(utc); }
/** * @param aDate a date */ public Created(final DateTime aDate) { super(CREATED, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aDate a date representation of a date-time value */ public LastModified(final DateTime aDate) { super(LAST_MODIFIED, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aDate a date representing a date-time */ public DtStamp(final DateTime aDate) { super(DTSTAMP, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date representing a date-time */ public DtStamp(final ParameterList aList, final DateTime aDate) { super(DTSTAMP, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date representation of a date-time value */ public LastModified(final ParameterList aList, final DateTime aDate) { super(LAST_MODIFIED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date representing a date-time */ public Acknowledged(final ParameterList aList, final DateTime aDate) { super(ACKNOWLEDGED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date */ public Created(final ParameterList aList, final DateTime aDate) { super(CREATED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date representing a date-time */ public Acknowledged(final ParameterList aList, final DateTime aDate) { super(ACKNOWLEDGED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aDate a date */ public Completed(final DateTime aDate) { super(COMPLETED, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date */ public Completed(final ParameterList aList, final DateTime aDate) { super(COMPLETED, aList, new Factory()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aList a list of parameters for this component * @param aDate a date representing a date-time */ public TzUntil(final ParameterList aList, final DateTime aDate) { super(TZUNTIL, aList, PropertyFactoryImpl.getInstance()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aDate a date representing a date-time */ public DtStamp(final DateTime aDate) { super(DTSTAMP, PropertyFactoryImpl.getInstance()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * @param aDate a date */ public Completed(final DateTime aDate) { super(COMPLETED, PropertyFactoryImpl.getInstance()); // time must be in UTC.. aDate.setUtc(true); setDate(aDate); }
/** * Updates the start and (possible) end times of this period to reflect * the specified timezone status. * @param timezone a timezone for the period */ public final void setTimeZone(final TimeZone timezone) { getStart().setUtc(false); getStart().setTimeZone(timezone); getEnd().setUtc(false); getEnd().setTimeZone(timezone); }
/** * Updates the start and (possible) end times of this period to reflect * the specified timezone status. * @param timezone a timezone for the period */ public final void setTimeZone(final TimeZone timezone) { getStart().setUtc(false); getStart().setTimeZone(timezone); getEnd().setUtc(false); getEnd().setTimeZone(timezone); }
private void normalise() { // ensure the end timezone is the same as the start.. if (getStart().isUtc()) { getEnd().setUtc(true); } else { getEnd().setTimeZone(getStart().getTimeZone()); } }
private void normalise() { // ensure the end timezone is the same as the start.. if (getStart().isUtc()) { getEnd().setUtc(true); } else { getEnd().setTimeZone(getStart().getTimeZone()); } }