// Datetime of the weather information. All dates appear to be EDT.
var $wdate;
Do you think we could optionally reformat the time to, say, GMT so that we could call a local time?
If not I might try to get round to extending the class, but it seems best to try and call it from inside the class.
Could it work something like this?
$ivw = new IVWeather($uvw,'UK');
If not I could try and make a JS function to reformat it on the client?
Whaddyathink?
You really read my mind. I did intend to convert the date/time to GMT, although I'm not sure whether it's worth going to the extreme of adding a whole lot of conversion code, considering that there are probably numerous classes available that can already handle that type of chore.
At any rate, if you do make any extensions in the class, please post them here, so I can consider including them in a future release.
But what if I live in France? (which I do) then its GMT +1, this made me think..
instead of say, an array of countries how about doing EDT -5
so the call to the class instead of:
$ivw = new IVWeather($uvw,'UK');
could be
$ivw = new IVWeather($uvw,-5);
might be a bit of type-juggling to handle -5, and then again some users will want to format the text differently I guess.. still would be more of a globally useful class.
As you say, then bringing in a 'nicedate.class' could be easier.
I am not sure how I can help on this, not a great writer of classes m'self.