biweekly.property
Class DateEnd
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.DateOrDateTimeProperty
biweekly.property.DateEnd
public class DateEnd
- extends DateOrDateTimeProperty
Defines the date that an event or free/busy component ends.
Examples:
//date and time
Date datetime = ...
DateEnd dtend = new DateEnd(datetime);
//date (without time component)
Date date = ...
DateEnd dtend = new DateEnd(date, false);
//with timezone (will output the Date object in the specified timezone)
Date datetime = ...
DateEnd dtend = new DateEnd(datetime);
dtend.setTimezoneId("America/New_York");
//raw components
DateTimeComponents components = new DateTimeComponents(1999, 4, 4, 2, 0, 0, false);
DateEnd dtend = new DateEnd(components);
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.95-6
| Methods inherited from class biweekly.property.DateOrDateTimeProperty |
getRawComponents, getTimezoneId, getValue, hasTime, isLocalTime, setLocalTime, setRawComponents, setTimezone, setTimezoneId, setValue, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateEnd
public DateEnd(Date endDate)
- Creates an end date property.
- Parameters:
endDate - the end date
DateEnd
public DateEnd(Date endDate,
boolean hasTime)
- Creates an end date property.
- Parameters:
endDate - the end datehasTime - true to include the time component of the date, false not
to
DateEnd
public DateEnd(DateTimeComponents components)
- Creates an end date property.
- Parameters:
components - the raw components of the date-time value
Copyright © 2013-2014 Michael Angstadt. All Rights Reserved.