biweekly.property
Class DateStart
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.DateOrDateTimeProperty
biweekly.property.DateStart
public class DateStart
- extends DateOrDateTimeProperty
Defines the date that an event, free/busy component, or timezone component
starts.
Examples:
//date and time
Date datetime = ...
DateStart dtstart = new DateStart(datetime);
//date
Date date = ...
DateStart dtstart = new DateStart(date, false);
//local date and time (don't print a timezone)
Date datetime = ...
DateStart dtstart = new DateStart(datetime);
dtstart.setLocalTime(true);
//with timezone
Date datetime = ...
DateStart dtstart = new DateStart(datetime);
dtstart.setTimezoneId("America/New_York");
//raw components
DateTimeComponents components = new DateTimeComponents(1999, 4, 4, 2, 0, 0, false);
DateStart dtstart = new DateStart(components);
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.97-8
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 |
DateStart
public DateStart(Date startDate)
- Creates a start date property.
- Parameters:
startDate
- the start date
DateStart
public DateStart(Date startDate,
boolean hasTime)
- Creates a start date property.
- Parameters:
startDate
- the start datehasTime
- true to include the time component of the date, false not
to
DateStart
public DateStart(DateTimeComponents components)
- Creates a start date property.
- Parameters:
components
- the raw components of the date-time value
Copyright © 2013 Michael Angstadt. All Rights Reserved.