RE: [PHP-GTK] Question about get_date method of GtkCalendar
| From: | Steph | Date: | Thu, 18 Dec 2003 21:01:43 +0000 |
| Subject: | RE: [PHP-GTK] Question about get_date method of GtkCalendar | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4308@lists.php.net to get a copy of this message | ||
someone must've fixed that then, it was a gtk bug if i recall correctly
ok, will fix the manual to suit current affairs, thanks.
> -----Original Message-----
> From: Douglas Douglas [mailto:replaceafill@yahoo.com]
> Sent: 18 December 2003 20:05
> To: php-gtk-general@lists.php.net
> Subject: [PHP-GTK] Question about get_date method of GtkCalendar
>
>
> 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/
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>