#-- vim:sw=2:et #++ # # :title: Time Zone Plugin for rbot # # Author:: Ian Monroe # Author:: Raine Virta # Copyright:: (C) 2006 Ian Monroe # Copyright:: (C) 2010 Raine Virta # License:: MIT license require 'tzinfo' class TimePlugin < Plugin def help(plugin, topic="") case topic when "set" _("usage: time set / -- setting your location allows the bot to calibrate time replies into your time zone, and other people to figure out what time it is for you") else _("usage: time -- %{b}timestamp%{b}: get info about a specific time, relative to your own time zone | %{b}time zone%{b}: get local time of a certain location,