Socket
Book a DemoInstallSign in
Socket

lita-timezone

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lita-timezone

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 24 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.