SamVerschueren / dev-time-cli

Get the current local time of a GitHub user.
MIT License
179 stars 12 forks source link

FR `--offset` #3

Open hemanth opened 8 years ago

hemanth commented 8 years ago

It will be useful to know the time offset between the local time and the dev-time (lazy to do the math)

SamVerschueren commented 8 years ago

You can use format for this

$ dev-time hemanth --format Z
+02:00
SamVerschueren commented 8 years ago

My bad, it's not entirely true. This will return the offset between GMT+0 and the timezone of the user.

sindresorhus commented 8 years ago

I would just show it in verbose mode (---verbose).

hemanth commented 8 years ago

--verbose makes more sense.

SamVerschueren commented 8 years ago

:+1:

SamVerschueren commented 8 years ago

Suggestions on the output?

$ node cli hemanth -v
17:07 - 10 Dec. 2015 - UTC+5.5 - +4.5

Not very clear where that +4.5 comes from...

hemanth commented 8 years ago

-v version vs -v verbose confusion as well.