How to get the no of days when the notification is set using days.
following is the code that set notification
function createEvent ($client, $title,$desc, $where,
$startDate, $startTime,
$endDate, $endTime, $tzOffset, $rem_method, $rem_val)
{
$gcal = new Zend_Gdata_Calendar($client);
$newEvent = $gcal->newEventEntry();
$reminder = $gcal->newReminder();
$reminder->method = $rem_method;
//$reminder->days = 5;
$reminder->setDays(1);
//echo $rem_val;
$newEvent->title = $gcal->newTitle($title);
$newEvent->where = array($gcal->newWhere($where));
$newEvent->content = $gcal->newContent("$desc");
$when = $gcal->newWhen();
$when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}";
$when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}";
$when->reminders = array($reminder);
$newEvent->when = array($when);
// Upload the event to the calendar server
// A copy of the event as it is recorded on the server is returned
$createdEvent = $gcal->insertEvent($newEvent);
return $createdEvent->id->text;
}
Following is the link to the demo site.
http://www.superquicksite.com/googleclndr/edit_event.php?id=3r2hdla9rd6hj0ja4mvmo100a8
In that site I want to disply time in days. But it displays in
minutes.
I would be much appreciate if any one can help me to solve this issue.
Regards,
nuwaninfo
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---