timezone_ak
v1.0.0
Published
provides the weather information of different cities around the world
Downloads
2
Readme
This service timezone exports following methods:
allTimeZones() : return the list of top cities around the world in an array
Each city contains the follow properties: cityName: 'city name', dateAndTime: 'current date and time of the city' timeZone:timeZone, temperature: temperature of the city, humidity: humidity of the city precipitation: precipitation of the city
timeForOneCity(): takes the city name as input and returns the current date and time of the respective city
nextNhoursWeather(): takes the city name as input and returns the array of next N hours along with the temperature
eg: { hours: [+1 Hour
, +2 Hour
, +3 Hour
, +4 Hour
, +5 Hour
], temperature: ['24 C', '29 C', '21 C', '28 C', '27 C']}