Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
/ lita-timezone Public archive

Lita handler to convert time between timezones

License

Notifications You must be signed in to change notification settings

firstleads/lita-timezone

Repository files navigation

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

About

Lita handler to convert time between timezones

Resources

License

Stars

Watchers

Forks

Packages

No packages published