Local time handler for Lita (lita.io)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-time.gemspec

README.md

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