Duration Property
Duration of the calendar event.
Syntax
ANSI (Cross Platform) char* GetDuration();
int SetDuration(const char* lpszDuration); Unicode (Windows) LPWSTR GetDuration();
INT SetDuration(LPCWSTR lpszDuration);
@property (nonatomic,readwrite,assign,getter=duration,setter=setDuration:) NSString* duration; - (NSString*)duration; - (void)setDuration:(NSString*)newDuration;
#define PID_CALDAV_DURATION 34 IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_CalDAV_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_CalDAV_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
This property contains the duration for a calendar event. Durations are represented by the format P<date>T<time>. The date component may contain a number of days or weeks (but not months or years), and the time component may consist of hours, minutes, and seconds. These are represented by an integer value followed by a letter representing the units, as specified by the table below:
P | is the duration designator (historically called "period") placed at the start of the duration representation. |
W | is the week designator that follows the value for the number of weeks. |
D | is the day designator that follows the value for the number of days. |
T | is the time designator that precedes the time components of the representation. |
H | is the hour designator that follows the value for the number of hours. |
M | is the minute designator that follows the value for the number of minutes. |
S | is the second designator that follows the value for the number of seconds. |
This format is based on ISO-8601, but unlike the ISO specification this duration property does not support durations measured in years or months.
This property is filled from the response to a GetCalendarEvent, and is also used when creating an event to be added using the PutCalendarEvent method. However, when requesting a report using the GetCalendarReport method, the contents of this property will only be valid inside the EventDetails event.
Data Type
String