ToTZ — Converts Date and Time to a New Time Zone

A simple command line utility for converting a date and time to a new time zone.

Examples:

> totz tomorrow 1pm MST
given  : Saturday 10 December 2016, 1:00pm -07:00 (MST).
desired: Saturday 10 December 2016, 12:00pm -08:00 (US/Pacific), in a day.

> totz 1969 July 20 13:32:00 UTC
given  : Sunday 20 July 1969, 1:32pm +00:00 (UTC).
desired: Sunday 20 July 1969, 6:32am -07:00 (US/Pacific), 47 years ago.

> totz --to est today 4pm local
given  : Friday 9 December 2016, 4:00pm -08:00 (US/Pacific).
desired: Friday 9 December 2016, 7:00pm -05:00 (EST), in 5 hours.

> totz -t America/Chicago mon 9am local
given  : Monday 12 December 2016, 9:00am -08:00 (US/Pacific).
desired: Monday 12 December 2016, 11:00am -06:00 (America/Chicago), in 2 days.

You can find the latest version of the source code on Github.

Enjoy,
-Ken

Contents: