public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new DtStart(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new DtStart(parameters, value); }
public void testAmericaIndiana() { java.util.TimeZone indianaTz = java.util.TimeZone .getTimeZone("America/Indiana/Indianapolis"); Calendar cal = Calendar.getInstance(indianaTz); cal.set(Calendar.HOUR_OF_DAY, 10); cal.set(Calendar.MINUTE, 20); DateTime dtStart = new DateTime(cal.getTime()); DtStart pDtStart = new DtStart(dtStart); pDtStart.setTimeZone(registry .getTimeZone("America/Indiana/Indianapolis")); }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VJOURNAL instance associated with the specified time with the specified summary. * @param start the date the journal entry is associated with * @param summary the journal summary */ public VJournal(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting at the specified time with the specified summary. * @param start the start date of the new event * @param summary the event summary */ public VEvent(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VJOURNAL instance associated with the specified time with the specified summary. * @param start the date the journal entry is associated with * @param summary the journal summary */ public VJournal(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting at the specified time with the specified summary. * @param start the start date of the new event * @param summary the event summary */ public VEvent(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting and ending at the specified times with the specified summary. * @param start the start date of the new event * @param end the end date of the new event * @param summary the event summary */ public VEvent(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting and ending at the specified times with the specified summary. * @param start the start date of the new todo * @param due the due date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final Date due, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Due(due)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VPOLL instance starting and ending at the specified times with the specified summary. * @param start the start date of the new poll * @param end the end date of the new poll * @param summary the summary */ public VPoll(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting and ending at the specified times with the specified summary. * @param start the start date of the new todo * @param due the due date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final Date due, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Due(due)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting and ending at the specified times with the specified summary. * @param start the start date of the new event * @param end the end date of the new event * @param summary the event summary */ public VEvent(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting and ending at the specified times with the specified summary. * @param start the start date of the new event * @param end the end date of the new event * @param summary the event summary */ public VEvent(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Test non-utc timezone works. */ public void testNonUtcTimezone() throws ParseException { DtStart start = new DtStart(); start.getParameters().add(Value.DATE_TIME); start.getParameters().add(new TzId("GMT")); start.setValue("20070101T080000"); assertEquals("DTSTART;VALUE=DATE-TIME;TZID=GMT:20070101T080000" + Strings.LINE_SEPARATOR, start.toString()); } }
/** * Unit tests for timezone constructor. */ public void testDtStartTimezone() throws ParseException { DtStart dtStart = new DtStart(timezone); dtStart.setValue(new DateTime().toString()); assertEquals(timezone, dtStart.getTimeZone()); // initialising with DATE value should reset timezone.. dtStart.setDate(new Date()); assertNull(dtStart.getTimeZone()); }
protected void setUp() throws Exception { observance = new Standard(); observance.getProperties().add(new DtStart("16010101T030000")); observance.getProperties().add(new TzOffsetFrom("+0200")); observance.getProperties().add(new TzOffsetTo("+0100")); observance.getProperties().add(new RRule("FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU")); }