Logo Search packages:      
Sourcecode: libical version File versions

struct icaltimetype icaltime_null_date ( void   )  [read]

Constructor.

Return a null date

Return a null date, which indicates no time has been set.

Definition at line 770 of file icaltime.c.

{
    struct icaltimetype t;
    memset(&t,0,sizeof(struct icaltimetype));

    t.is_date = 1;

    /*
     * Init to -1 to match what icalyacc.y used to do.
     * Does anything depend on this?
     */
    t.hour = -1;
    t.minute = -1;
    t.second = -1;

    return t;
}


Generated by  Doxygen 1.6.0   Back to index