a few other observations

From: Date: Mon, 17 May 2004 21:06:17 +0000
Subject: a few other observations
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12556@lists.php.net to get a copy of this message
I just wanted to post about a few other things I have noticed about my problem I posted about. First wanted to note that in that code I posted, that function translateMonth() wasn't meant to be there. I lost track of it and just accidently wrote code around 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. Before going on, here is that function: function adjust(&$this) { $date = new Date($this->getTimeStamp()); $this->year = $date->year; $this->month = $date->month; $this->day = $date->day; $this->hour = $date->hour; $this->minute = $date->minute; $this->second = $date->second; } And the same problem still exists. I know that the date methods are returning correctly, because I had the values being echoed so I could see what was happening. 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. but apparently that doesn't matter, as it still doesn't work! Still any help is appreciated; I just wanted to post these things in case they may help out a little.

« previous php.pear.general (#12556) next »