Skip to content

harlanbarnes/lita-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lita-time

Build Status Coverage Status

lita-time is a handler for Lita that uses the World Weather Online Time Zone API to look up local time in a given location.

Installation

Add lita-time to your Lita instance's Gemfile:

gem "lita-time"

Configuration

Required attributes

Example

Lita.configure do |config|
  config.handlers.time.apikey = "abcdef1234567890fedcba0987654321"
end

Usage

Usage

You can look up the locale lime of a location using many diferent forms:

Lita: time Mableton, GA
Lita: time in Mableton, GA
Lita: what time in Mableton, GA
Lita: what time is it in Mableton, GA

The location names that supported by the API are:

  • City and Town Names
  • IP Address
  • UK Postcode
  • Canada Postal Code
  • US Zipcode
  • Aiport code (IATA)
  • Latitude and Longitude (in decimal)

Acknowledgements

License

MIT

About

Local time handler for Lita (lita.io)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages