Package net.fortuna.ical4j.model.property

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


        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }

    protected static Timestamp fromDtStart(PropertyList propertyList) {
        DtStart iCalObj = (DtStart) propertyList.getProperty(DtStart.DTSTART);
        if (iCalObj == null) {
            return null;
        }
        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }
View Full Code Here


    protected static DtStart toDtStart(Timestamp javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new DtStart(new DateTime(javaObj));
    }
View Full Code Here

    public ClassVEvent(ClassTimetable ct) {
        super();
        Course course = ct.getCourse();
        PropertyList pl = getProperties();
        DateTime[] timeStandard = ct.getDtStartEnd();
        pl.add(new DtStart(timeStandard[0]));
        if (timeStandard[1] != null) {
            pl.add(new DtEnd(timeStandard[1]));
        }
        try {
            UidGenerator ug = new UidGenerator("1");
View Full Code Here

        int i = 0;
        for(EventVO event : events)
        {
            VEvent vevent = new VEvent();
            if(!event.isAllDay()){
                vevent.getProperties().add(new DtStart(new DateTime(event.getStartDate())));
                vevent.getProperties().add(new DtEnd(new DateTime(event.getEndDate().getTime())));
            }
            else
            {
                vevent.getProperties().add(new DtStart(new Date(event.getStartDate())));
                vevent.getProperties().getProperty(Property.DTSTART).getParameters().add(Value.DATE);
                vevent.getProperties().add(new DtEnd(new Date(event.getEndDate().getTime())));
                vevent.getProperties().getProperty(Property.DTEND).getParameters().add(Value.DATE);
            }
           
View Full Code Here

        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

        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }

    protected static Timestamp fromDtStart(PropertyList propertyList) {
        DtStart iCalObj = (DtStart) propertyList.getProperty(DtStart.DTSTART);
        if (iCalObj == null) {
            return null;
        }
        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }
View Full Code Here

    protected static DtStart toDtStart(Timestamp javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new DtStart(new DateTime(javaObj));
    }
View Full Code Here

        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

                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

        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

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.