-
Notifications
You must be signed in to change notification settings - Fork 44
Component Reference
Defines a daylight savings time range within a VTIMEZONE component.
Definition: | |
Java class: |
Examples:
VTimezone timezone = new VTimezone("Eastern Standard Time");
DaylightSavingsTime daylight = new DaylightSavingsTime();
Date start = ...
daylight.setDateStart(start);
daylight.setTimezoneOffsetFrom(-5, 0);
daylight.setTimezoneOffsetTo(-4, 0);
timezone.addDaylightSavingsTime(daylight);
Defines a standard time range within a VTIMEZONE component.
Definition: | |
Java class: |
Examples:
VTimezone timezone = new VTimezone("Eastern Standard Time");
StandardTime standard = new StandardTime();
Date start = ...
standard.setDateStart(start);
standard.setTimezoneOffsetFrom(-4, 0);
standard.setTimezoneOffsetTo(-5, 0);
timezone.addStandardTime(standard);
Defines a reminder for an event or to-do task. This class contains static factory methods to aid in the construction of valid alarms.
Definition: | |
Java class: |
Examples:
//audio alarm
Trigger trigger = ...
Attachment sound = ...
VAlarm audio = VAlarm.audio(trigger, sound);
//display alarm
Trigger trigger = ...
String message = "Meeting at 1pm";
VAlarm display = VAlarm.display(trigger, message);
//email alarm
Trigger trigger = ...
String subject = "Reminder: Meeting at 1pm";
String body = "Team,\n\nThe team meeting scheduled for 1pm is about to start. Snacks will be served!\n\nThanks,\nJohn";
List<String> to = Arrays.asList("janedoe@example.com", "bobsmith@example.com");
VAlarm email = VAlarm.email(trigger, subject, body, to);
Defines a scheduled activity, such as a meeting that's two hours long.
Definition: | |
Java class: |
Examples:
VEvent event = new VEvent();
Date start = ...
event.setDateStart(start);
Date end = ...
event.setDateEnd(end);
event.setSummary("Team Meeting");
event.setLocation("Room 21C");
event.setCreated(new Date());
event.setRecurrenceRule(new RecurrenceRule(Frequency.WEEKLY));
Defines a collection of time ranges that describe when the person is available or unavailable.
Definition: | |
Java class: |
Examples:
VFreeBusy freebusy = new VFreeBusy();
FreeBusy fb = new FreeBusy();
fb.setType(FreeBusyType.BUSY);
Date onePM = ...
Date threePM = ...
fb.addValue(onePM, threePM);
Date fourPM = ...
Duration oneHour = new Duration.Builder().hours(1).build();
fb.addValue(fourPM, oneHour);
freebusy.addFreeBusy(fb);
Defines descriptive text associated with the calendar data.
Definition: | |
Java class: |
Examples:
VJournal journal = new VJournal();
journal.setSummary("Team Meeting");
journal.setDescription("The following items were discussed: ...");
byte[] slides = ...
journal.addAttachment(new Attachment("application/vnd.ms-powerpoint", slides));
Defines a timezone's UTC offsets throughout the year.
Definition: | |
Java class: |
Examples:
VTimezone timezone = new VTimezone("Eastern Standard Time");
StandardTime standard = new StandardTime();
Date startStandard = ...
standard.setDateStart(startStandard);
standard.setTimezoneOffsetFrom(-4, 0);
standard.setTimezoneOffsetTo(-5, 0);
timezone.addStandardTime(standard);
DaylightSavingsTime daylight = new DaylightSavingsTime();
Date startDaylight = ...
daylight.setDateStart(startDaylight);
daylight.setTimezoneOffsetFrom(-5, 0);
daylight.setTimezoneOffsetTo(-4, 0);
timezone.addDaylightSavingsTime(daylight);
Defines a task or assignment.
Definition: | |
Java class: |
Examples:
VTodo todo = new VTodo();
todo.setSummary("Complete report");
Date due = ...
todo.setDateDue(due);
todo.setStatus(Status.confirmed());
biweekly is maintained by Michael Angstadt
Table of Contents
Getting started
Examples
FAQ
Javadocs
Downloads
1 An Overview of the iCalendar data format
2 Reading and Writing iCalendar data with biweekly
2.1 Plain-text (traditional)
2.2 XML-encoded (xCal)
2.3 JSON-encoded (jCal)
4 Working with Timezones
4.1 0.4.6 and earlier
4.2 0.5.0 and later
5 Dealing with Non-standard Data
5.1 Non-standard components
5.2 Non-standard properties
5.3 Non-standard parameters
6 Project Information
6.1 Dependencies
6.2 Supported Specifications
6.3 Changelog
7 Reference
7.1 iCalendar Component Reference
7.2 iCalendar Property Reference
7.3 Javadocs