The results that you print would not be printed for the event that you
created.

2012-12-04T01:00:00.000+01:00       2012-12-04T01:00:00.000+01:00

doesn't print for

String recurData = "DTSTART:2011-06-01T13:30:00\r\n"
                + "DTEND:2011-06-01T14:30:00\r\n"
                + "RRULE:FREQ=DAILY";

and if you set singleeevents=true for that event, you ought to see 25
results.

Beyond that, do you have a time zone issue? You haven't told us your time
zone, or the default time zone of your Google calendar, but Google is
returning to you a result is in the +01:00 timezone (British Summer Time?).

Is that your time zone? Are in time zone that differs from that by 12 and a
half hours?

Ray


On Thu, Jun 2, 2011 at 1:40 AM, Redha Kaban <[email protected]> wrote:

> Hi
> i use the recurring to create the event by this code
>
> String recurData = "DTSTART:2011-06-01T13:30:00\r\n"
>                 + "DTEND:2011-06-01T14:30:00\r\n"
>                 + "RRULE:FREQ=DAILY";
>
>         CalendarEventEntry myEntry = new CalendarEventEntry();
>         Recurrence recur = new Recurrence();
>
>         recur.setValue(recurData);
>         myEntry.setTitle(new PlainTextConstruct("Daily"));
>         myEntry.setRecurrence(recur);
>
>         CalendarEventEntry returnedCalendar = (CalendarEventEntry)
> myService.insert(postUrl, myEntry);
>
>
> and call the event by using this code
>
>  CalendarQuery q = new CalendarQuery(feedUrl);
> q.setStringCustomParameter("singleevents", "true");
> CalendarEventFeed myResultsFeed = myService.query(q,
> CalendarEventFeed.class);
>         if (myResultsFeed.getEntries().size() > 0) {
>             CalendarEventEntry firstMatchEntry = (CalendarEventEntry)
> myResultsFeed.getEntries().get(0);
>             String myEntryTitle =
> firstMatchEntry.getTitle().getPlainText();
>             List<When> my=firstMatchEntry.getTimes();
> System.out.println(my.get(0).getStartTime()+"
> "+my.get(0).getEndTime()+"    "
>         +firstMatchEntry.getTimes().toString());
>         }
>
> the result print out this
>
> 2012-12-04T01:00:00.000+01:00       2012-12-04T01:00:00.000+01:00
>
> what i need the start time and end time every day to make some
> coding control's in my server
> On Thu, Jun 2, 2011 at 6:22 AM, Ray Baxter <[email protected]> wrote:
>
>> How do you know that those start and end times are incorrect?
>>
>> There is no way for us to know, because we didn't create the event and you
>> haven't told us what you believe the correct time should be, how you created
>> this event, or your time zone.
>>
>> Ray
>>
>>
>> On Wed, Jun 1, 2011 at 6:26 PM, Redha Kaban <[email protected]> wrote:
>>
>>> Hi
>>> i use this code its work but it give me the time for start time
>>>  2012-12-04T01:00:00.000+01:00     and end time
>>> 2012-12-04T01:00:00.000+01:00
>>>
>>> the code
>>>  CalendarQuery q = new CalendarQuery(feedUrl);
>>> q.setStringCustomParameter("singleevents", "true");
>>> CalendarEventFeed myResultsFeed = myService.query(q,
>>> CalendarEventFeed.class);
>>>         if (myResultsFeed.getEntries().size() > 0) {
>>>             CalendarEventEntry firstMatchEntry = (CalendarEventEntry)
>>> myResultsFeed.getEntries().get(0);
>>>             String myEntryTitle =
>>> firstMatchEntry.getTitle().getPlainText();
>>>             List<When> my=firstMatchEntry.getTimes();
>>> System.out.println(my.get(0).getStartTime()+"
>>> "+my.get(0).getEndTime());
>>>         }
>>>
>>> but how can i get the correct time
>>>
>>> On Wed, Jun 1, 2011 at 11:48 PM, Dimitrios Zlitidis <[email protected]
>>> > wrote:
>>>
>>>> If this is the problem I described about, then you can query recurring
>>>> events by setting the property "SingleEvents" of the query object. In C# it
>>>> is: "myQuery.SingleEvents = true;" And it querries the recurring events, as
>>>> well. I hope that was your problem and I helped... :-)
>>>>
>>>> 2011/6/1 Dimitrios Zlitidis <[email protected]>
>>>>
>>>>> So, to make it clear, you create recurring events but you can't
>>>>> retrieve them? I just checked it with the application I'm developing and I
>>>>> can't retrieve them too. I'm working on C#. If I make it, I'll send you
>>>>> feedback.
>>>>>
>>>>>
>>>>> 2011/6/1 Redha Kaban <[email protected]>
>>>>>
>>>>>> Hi
>>>>>>  sorry i create the recurring but i need for the single event example
>>>>>> i read all that page you send it to me but no information about how use 
>>>>>> the
>>>>>> singleevents query parameter with recurring if you can send to me any 
>>>>>> page
>>>>>> or example  in java
>>>>>> Thank you
>>>>>>
>>>>>> On Wed, Jun 1, 2011 at 9:37 PM, Dimitrios Zlitidis <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Redha,
>>>>>>>
>>>>>>> this will help you, if you haven't already checked it:
>>>>>>> http://code.google.com/intl/el-GR/apis/calendar/data/2.0/developers_guide_java.html#CreatingRecurring
>>>>>>>
>>>>>>> Regards,
>>>>>>> Dimitris
>>>>>>>
>>>>>>>
>>>>>>> 2011/6/1 Redha Kaban <[email protected]>
>>>>>>>
>>>>>>>> Hi
>>>>>>>> is  there  any link to page ,example or  forum post you can help me
>>>>>>>> with can you send it to me
>>>>>>>>
>>>>>>>> On Wed, Jun 1, 2011 at 6:08 PM, Alain Vongsouvanh <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi Redha,
>>>>>>>>>
>>>>>>>>> If you want to create a recurring event, you have no choice but to
>>>>>>>>> build the recurrence rule and put it in a Calendar Event Entry (the 
>>>>>>>>> string
>>>>>>>>> you are talking about). If you want to retrieve this particular 
>>>>>>>>> event, and
>>>>>>>>> have it split into multiple single event, you can use the 
>>>>>>>>> singleevents query
>>>>>>>>> parameter as specified in the mentioned forum post.
>>>>>>>>>
>>>>>>>>> Best,
>>>>>>>>> Alain
>>>>>>>>>
>>>>>>>>> On Tue, May 31, 2011 at 12:47 PM, Redha Kaban <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Hi
>>>>>>>>>> can i use when for create all day event in Google calendar
>>>>>>>>>> with Java and is there any example to do that . i use before 
>>>>>>>>>> recurrence and
>>>>>>>>>> i can create that event but when i call it it give me the string i 
>>>>>>>>>> send an
>>>>>>>>>> email and you answer about old question and i see it but no answer 
>>>>>>>>>> about how
>>>>>>>>>> can i create the all day event and how to call it every day to do 
>>>>>>>>>> some thing
>>>>>>>>>> in that time .
>>>>>>>>>> can any one help me om example how to create all day event and how
>>>>>>>>>> i call it .
>>>>>>>>>>
>>>>>>>>>>  --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>> Groups "Google Calendar Data API" group.
>>>>>>>>>> To post to this group, send email to
>>>>>>>>>> [email protected]
>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>> [email protected]
>>>>>>>>>> For more options, visit this group at
>>>>>>>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Alain Vongsouvanh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Google Calendar Data API" group.
>>>>>>>>> To post to this group, send email to
>>>>>>>>> [email protected]
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> [email protected]
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Google Calendar Data API" group.
>>>>>>>> To post to this group, send email to
>>>>>>>> [email protected]
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> [email protected]
>>>>>>>> For more options, visit this group at
>>>>>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Google Calendar Data API" group.
>>>>>>> To post to this group, send email to
>>>>>>> [email protected]
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected]
>>>>>>> For more options, visit this group at
>>>>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>>>>
>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Google Calendar Data API" group.
>>>>>> To post to this group, send email to
>>>>>> [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]
>>>>>> For more options, visit this group at
>>>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>>>
>>>>>
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Calendar Data API" group.
>>>> To post to this group, send email to
>>>> [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://code.google.com/apis/calendar/community/forum.html
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Calendar Data API" group.
>>> To post to this group, send email to
>>> [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://code.google.com/apis/calendar/community/forum.html
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Google Calendar Data API" group.
>> To post to this group, send email to
>> [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://code.google.com/apis/calendar/community/forum.html
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Google Calendar Data API" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/calendar/community/forum.html
>

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to