Re: a few other observations
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Tue, 18 May 2004 19:49:27 +0000 |
| Subject: | Re: a few other observations | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12574@lists.php.net to get a copy of this message | ||
Lorenzo Alberton wrote:
> 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
Hello Lorenzo
Thanks for your reply. It is not a new thread, just a different subject.
I will definitely try to figure out if it is something with my script. It
seems to work any other time though, so that is why I doubted it to be
there. I will also take a look at example 14, as you have suggested.
Brandon