Lita handler to convert time between timezones.
Add lita-timezone to your Lita instance's Gemfile:
gem "lita-timezone"
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.
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