1.0.1 • Published 8 years ago

hubot-timezone v1.0.1

Weekly downloads
11
License
ISC
Repository
github
Last release
8 years ago

hubot-timezone

Hubot script to convert time between timezones.

Installation

npm install hubot-timezone --save

And add hubot-timezone to external-scripts.coffee.

Commands

hubot time in <location> - Ask hubot for a time in a location
hubot <time> in <location> - Convert a given time to a given location, e.g. "1pm in Sydney"
hubot <time> from <location> to <location> - Convert a given time between 2 locations
hubot set timezone offset to <offset> - Set the default timezone offset, can be hours or minutes

Sample usage

user>> hubot time in Sydney
hubot>> Time in Sydney NSW, Australia is Sunday, June 28th 2015, 6:15:39 pm
user>> hubot set timezone offset to 8
hubot>> Default timezone offset is set to 480
user>> hubot 1pm in Singapore
hubot>> Time in Singapore is Sunday, June 28th 2015, 1:00:00 pm
user>> hubot 2015-7-4 9:30am from San Jose to Tokyo
hubot>> Time in Tokyo, Japan is Sunday, July 5th 2015, 1:30:00 am
1.0.1

8 years ago

1.0.0

8 years ago

0.9.0

9 years ago