timezone_ak

1.0.0 • Public • Published

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']}

Readme

Keywords

none

Package Sidebar

Install

npm i timezone_ak

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

7.51 kB

Total Files

3

Last publish

Collaborators

  • akhilkumararshid