Project

lita-time

0.0
No commit activity in last 3 years
No release in over 3 years
A Lita handler for getting the curent time for a given location
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 3.3
 Project Readme

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