get_primary_time


Description:

[ Version ( since = "0.2.0" ) ]
public bool get_primary_time (out int64 start_time, out int64 end_time, out unowned GDWhen when)

Gets the first time period associated with the event, conveniently returning just its start and end times if required.

If there are no time periods, or more than one time period, associated with the event, false will be returned, and the parameters will remain unmodified.

Parameters:

this

a CalendarEvent

start_time

a int64 for the start time, or null

end_time

a int64 for the end time, or null

when

a GDWhen for the primary time structure, or null

Returns:

true if there is only one time period associated with the event, false otherwise