Skip to content
Lita handler to convert time between timezones
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
locales
spec
templates
.gitignore
.rspec
.rubocop.yml
.travis.yml
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
lita-timezone.gemspec

README.md

lita-timezone

Build Status Coverage Status Code Climate

Lita handler to convert time between timezones.

Installation

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

gem "lita-timezone"

Configuration

Setup your default timezone

config.handlers.timezone.default_zone = 'Brasilia'

Tip: See in the initialize method of the handler how to get all available timezones of your machine.

Usage

lita time now in Beijing

  • Returns the time in Beijing for current time

lita time 14:00 in Beijing

  • Returns the time in Beijing for 14:00 in the default_zone

lita time now from Buenos Aires to Beijing

  • Returns the time in Beijing for current time in Buenos Aires

lita time 14:00 from Buenos Aires to Beijing

  • Returns the time in Beijing for 14:00 in Buenos Aires

lita available timezones

  • Returns all timezones names available for use

lita available timezones containing Pacific

  • Returns all timezones that contains Pacific in the name
You can’t perform that action at this time.