What is PhpDig?
PhpDig is a PHP MySQL based
Web Spider & Search Engine.



mcal_event_set_end — Attach an end date and time to the stream's global event


void mcal_event_set_end(MCALconnection, year, month, day[, hour][, min][, sec]);
int MCALconnection: An open MCAL connection
int year: The year the event ends
int month: The month the event ends
int day: The day on which the event ends
int hour (optional): The hour the event ends
int min (optional): The minute on which the event ends
int sec (optional): The seconds value on which the event ends


FALSE on error, otherwise NULL


This function sets the date and time at which an event ends. The time arguments are optional, but they are the most significant part of the value being set, as they set the event's duration. The date is almost always the same as the start date, unless a single occurrence of the event spans multiple days. It is not the date that recurrence of the event ends; that date is set by the recurrence functions.


PHP 3 since 3.0.13, PHP 4 since 4.0b4


Example 711. Setting the end date of an event

$calendar = "{/mstore}<mycalendar>";
$MCALconnection = mcal_open($calendar, "username", "password");

// Set the event to end on the same day as it started, at 2:30 in the afternoon.
$end_hour = 14;
$end_min = 30;
$end_sec = 0;
mcal_event_set_end($MCALconnection, $start_year, $start_month, $start_day,
                   $end_hour, $end_min, $end_sec);

PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at The authors of this book have elected not to choose any options under the OPL. This online book was obtained from and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.