lampewebdev / elementarybot

a bot for the elementary irc chat
www.lazarski.me
GNU General Public License v3.0
3 stars 6 forks source link

current time for a timezone #2

Closed loklaan closed 8 years ago

loklaan commented 11 years ago

as a person in a australia, i want to know the current time in places that i know elementary devs are located, so i can hassle them at when they're least tired

I made up the last bit, but you get the gist. It'd be cool.

!time <city, land> or !time (abbreviated standard times) or !time <-3> / !time <+10> (yeah, not too helpful)

lampe commented 11 years ago

hey

i will look into it. never worked with the ruby time class so much but i will look into it maybe there is a service that can do that? that returns a xml or json ?

loklaan commented 11 years ago

rbot has a time & timezone plugin. rbot is gpl v2

you could look into that if you wish :)

lampe commented 11 years ago

i looked into that source code: they use tzinfo i could use that too ;) I could use some parts of there code :P or get "inspiration" by there code ;) source: http://ruby-rbot.org/rbot-trac/browser/data/rbot/plugins/time.rb?rev=edd1cf77be07ae507014574141e920ad23eb164d

loklaan commented 11 years ago

MIT license. You're fine. :)

loklaan commented 8 years ago

Cleaning up my dead issues. Cheers.