Module: Irc::Utils

Module Irc::Utils |
In: | rbot/utils.rb

miscellaneous useful functions

Methods

get_metar get_metar get_metar

Classes and Modules

Class Irc::Utils::Metar

Public Class methods

timestr_offset(timestr)

read a time in string format, turn it into "seconds from now". example formats handled are "5 minutes", "2 days", "five hours", "11:30", "15:45:11", "one day", etc.

Throws: | RunTimeError "invalid time string" on parse failure

http_get(uristr, readtimeout=8, opentimeout=4)

returns a string containing the result of an HTTP GET on the uri

get_metar(station)