Project

timez

0.0
No commit activity in last 3 years
No release in over 3 years
Can use to get World Clock from the time zone or location for the Ruby Applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Timez

Timez is the API implementation of timezonedb for Ruby. Can use to get World Clock from the time zone or location for the Ruby Applications by json or xml.

Timez gem use the power of celluloid for concurrent API requests.

Installation

Add this line to your application's Gemfile:

gem 'timez'

And then execute:

$ bundle

Or install it yourself as:

$ gem install timez

Usage

First of all Register on timezonedb to get your key to access the API.

Get Time by time zone,

time = Timez.get_time('Asia/Colombo', 'YOUR_API_KEY')

Here is the time zone list, time zone list

Get Time by location,

time = Timez::Location.get_time('LATITUDE', 'LONGITUDE', 'YOUR_API_KEY')

Get Time as XML,

time = Timez::Xml.get_time('Asia/Colombo', 'YOUR_API_KEY')

Contributing

  1. Fork it ( https://github.com/abstractive/timez/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Developer: @dilumn

Mentor: @digitalextremist