Re: a few other observations
| From: | Lorenzo Alberton | Date: | Tue, 18 May 2004 08:07:02 +0000 |
| Subject: | Re: a few other observations | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12561@lists.php.net to get a copy of this message | ||
On 17 May 2004 21:06:17 -0000, PHPDiscuss - PHP Newsgroups and mailing lists
wrote:
> I just wanted to post about a few other things I have noticed about
> my problem I posted about.
please *always* reply to the original topic. There's an high traffic
here on the list, and keeping track of each message is almost
impossible if it's not in the same thread.
> First wanted to note that in that code I posted, that function
> translateMonth() wasn't meant to be there.
yeah, I guessed it ;-)
> Anyway. I have looked at the adjust method, and the methods it
> called. It seems that it should work fine. I tried making my own
> adjust function which does basically the same thing.
> And the same problem still exists.
that's likely so, because I'm sure the problem is not where
you think it is. If I were you, I'd have a look at other parts
of your script, for instance the table generation (maybe
you screwed the column order, not matching the real
$start_day, or something like that?
> Yet it still does not work. I will keep trying to poke around
> to see why it is not working; but this
> is an awfully large set of classes. :)
>
> I just tried something else. I thought this might work but
> unfortunately not. the variables year, month, day, hour, minute,
> and second of the Calendar classes are integers. The variables of
> the same names in the Date class are strings. So, when these values
> are put into the variables within the Calendar class, they are
> turned to strings; which, I thought, may have a bit of an affect
> when trying to use them as integers. It might not except that the
> Date class returns, for example, the day as 01, not just 1.
no, I forced a cast to int to all the strings
I suggest having a look at the example #14 in the package,
I believe that modifying that example to suit your needs
will be much faster than trying to find the problem in your script...
my 0.02$
Regards,
--
Lorenzo Alberton
http://pear.php.net/user/quipo