CONSTRUCTOR
new(hash or hashref)
The constructor will usually not be used directly because you get ready to use location objects by using a finder.
METHODS
id()
Returns the location id used to instantiate this location.
Returns the name of the location as provided by weather.com.
Returns a Weather::Com::CurrentConditions object containing the current conditions of the location.
Please refer to Weather::Com::CurrentConditions for further
details.
Returns a Weather::Com::Forecast object.
Please refer to Weather::Com::Forecast for further details.
Returns the latitude of the location.
Returns the longitude of the location.
Returns a Weather::Com::DateTime object containing the local time of the location.
This method is deprecated and will be removed with the next release!
Returns the local time of the location.
The time is returned in the format "hh:mm [AM|PM]". To get a 24 hour format use "localtime" instead.
Sample: 10:30 PM
sunrise()
Returns a Weather::Com::DateTime object containing the time of sunrise.
This method is deprecated and will be removed with the next release!
Returns the time of sunrise in 12 hour format (see "localtime_ampm()"
for details).
Returns a Weather::Com::DateTime object containing the time of sunset.
This method is deprecated and will be removed with the next release!
Returns the time of sunset in 12 hour format (see "localtime_ampm()"
for details).
Returns the timezone offset to GMT (without respecting
daylight savings time).
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas SchnueckerThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com (http://www.weather.com/services/xmloap.html)