20#include "libical_ical_export.h"
40#define ICALDURATIONTYPE_INITIALIZER {0, 0, 0, 0, 0, 0}
struct icaldurationtype icaldurationtype_bad_duration(void)
Creates a bad duration (used to indicate error).
struct icaldurationtype icalduration_from_times(struct icaltimetype t1, struct icaltimetype t2)
Creates a duration from two icaltimetype endpoints.
struct icaltimetype icalduration_extend(struct icaltimetype t, struct icaldurationtype d)
Extends a time duration.
struct icaldurationtype icaldurationtype_from_seconds(int seconds)
Creates a new icaldurationtype from a duration in seconds.
struct icaldurationtype icaldurationtype_from_string(const char *str)
Creates a new icaldurationtype from a duration given as a string.
struct icaldurationtype icaldurationtype_null_duration(void)
Creates a duration with zero length.
struct icaldurationtype icaldurationtype_normalize(struct icaldurationtype dur)
Create a normalized duration from another duration.
int icaldurationtype_as_utc_seconds(struct icaldurationtype duration)
Extracts the duration in integer seconds from an icaldurationtype in UTC time.
int icaldurationtype_as_seconds(struct icaldurationtype duration)
Extracts the duration in integer seconds from an icaldurationtype.
bool icaldurationtype_is_bad_duration(struct icaldurationtype d)
Checks if a duration is a bad duration.
char * icaldurationtype_as_ical_string_r(struct icaldurationtype d)
bool icaldurationtype_is_null_duration(struct icaldurationtype d)
Checks if a duration is a null duration.
char * icaldurationtype_as_ical_string(struct icaldurationtype d)
Defines the data structure for representing date-times.