dev-time-cli icon indicating copy to clipboard operation
dev-time-cli copied to clipboard

FR `--offset`

Open hemanth opened this issue 10 years ago • 7 comments

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

hemanth avatar Dec 07 '15 09:12 hemanth

You can use format for this

$ dev-time hemanth --format Z
+02:00

SamVerschueren avatar Dec 08 '15 09:12 SamVerschueren

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

SamVerschueren avatar Dec 08 '15 09:12 SamVerschueren

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

sindresorhus avatar Dec 10 '15 11:12 sindresorhus

--verbose makes more sense.

hemanth avatar Dec 10 '15 11:12 hemanth

:+1:

SamVerschueren avatar Dec 10 '15 11:12 SamVerschueren

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...

SamVerschueren avatar Dec 10 '15 12:12 SamVerschueren

-v version vs -v verbose confusion as well.

hemanth avatar Dec 10 '15 12:12 hemanth