Re: Re[2]: [PHP-GTK-DEV] Overrides for GtkUIManager and GtkCalendar

From: Date: Mon, 19 Dec 2005 05:47:20 +0000
Subject: Re: Re[2]: [PHP-GTK-DEV] Overrides for GtkUIManager and GtkCalendar
References: 1 2 3  Groups: php.gtk.dev php.gtk.general 
Request: Send a blank email to php-gtk-dev+get-2132@lists.php.net to get a copy of this message
Here is the test code I used. Returning a full date is more useful I think in most cases and as the function return is different to the Gtk call anyway it seemed a very simple addition. It replaces: $date = $calendar->get_date(); $selected_date = $date[0].'-'.($date[1]+1).'-'.$date[3]; //messy :)
Yep, I know. I'm just not sure about how far to meddle here. Could do with more feedback... Oh hear ye, PHP-GTK users and Andrei! Tom wants to make GtkCalendar::get_date() return something that can be used with PHP's strtotime() function, e.g.'2005-12-10'. This to be the fourth element in what is currently a three-element array. Good idea? Bad idea? Speak now or forever hold your peace! - Steph

« previous php.gtk.dev (#2132) next »