Question about get_date method of GtkCalendar
| From: | Douglas Douglas | Date: | Thu, 18 Dec 2003 20:05:23 +0000 |
| Subject: | Question about get_date method of GtkCalendar | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4306@lists.php.net to get a copy of this message | ||
Hello everybody!
I'm excited because I'm learning PHP-GTK. I have read
the following in the manual about the get_date method
of the GtkCalendar widget:
"The range for the month is 1 - 12 here, but 0 - 11 in
the select_month() method. Marked dates also run from
0. Beware!"
But when I do this (selecting December 2, 2003):
...
$calendar->connect('day_selected','echo_date');
...
function echo_date($calendar)
{
print_r($calendar->get_date());
}
It prints:
Array
(
[0] => 2003
[1] => 11
[2] => 2
)
It seems like this method's range for the month is
also 0-11 (and maybe the manual is wrong about this).
Sorry to bother you, but I'd appreciate any help.
Regards, Douglas.
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/