Basic Usage - abstractive/timez GitHub Wiki

##Basic 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')