30#include "libical_ical_export.h"
46#define ICALDURATIONTYPE_INITIALIZER { 0, 0, 0, 0, 0, 0 }
struct icaldurationtype icaldurationtype_from_string(const char *dur)
Creates a new icaldurationtype from a duration given as a string.
Definition icalduration.c:62
int icaldurationtype_as_int(struct icaldurationtype duration)
Converts an icaldurationtype into the duration in seconds as int.
Definition icalduration.c:270
struct icaldurationtype icaldurationtype_bad_duration(void)
Creates a bad duration (used to indicate error).
Definition icalduration.c:304
struct icaldurationtype icaldurationtype_from_int(int t)
Creates a new icaldurationtype from a duration in seconds.
Definition icalduration.c:32
int icaldurationtype_is_bad_duration(struct icaldurationtype d)
Checks if a duration is a bad duration.
Definition icalduration.c:313
struct icaldurationtype icaltime_subtract(struct icaltimetype t1, struct icaltimetype t2)
Returns the difference between two icaltimetype as a duration.
Definition icalduration.c:339
struct icaltimetype icaltime_add(struct icaltimetype t, struct icaldurationtype d)
Adds a duration to an icaltime object and returns the result.
Definition icalduration.c:318
char * icaldurationtype_as_ical_string_r(struct icaldurationtype d)
Definition icalduration.c:220
struct icaldurationtype icaldurationtype_null_duration(void)
Creates a duration with zero length.
Definition icalduration.c:279
char * icaldurationtype_as_ical_string(struct icaldurationtype d)
Definition icalduration.c:211
int icaldurationtype_is_null_duration(struct icaldurationtype d)
Checks if a duration is a null duration.
Definition icalduration.c:288
struct icaltimetype is a pseudo-object that abstracts time handling.
A struct representing a duration.
Definition icalduration.h:37
Definition icaltime.h:105