tz

command module
v0.0.0-...-1b8c1f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 14 Imported by: 0

README

tz - A simple CLI timezone visualizer.

Installation
go get "github.com/mmcquillan/tz"
Usage
tz list
tz [zones] [--date] [--24]

examples:
  tz UTC
  tz UTC,Local
  tz America/New_York
  tz America/New_York:Matt
  tz America/New_York:Matt:8:17
  tz UTC,America/New_York:Matt:8:17

Zone format is a comma delimited set of:

<timezone>[:name][:start time][:end time]

You can set zones in your home director ~/.tz:

- tz: "UTC"
- tz: "local"
  name: "Matt"
  start: 8
  end: 17
- tz: "America/Los_Angeles"
  name: "Jack"
  start: 8
  end: 17

You can also set via envrionment variables:

TZ_ZONES="UTC,America/New_York:Matt:8:17,America/Los_Angeles:Jack:8:17"

TZ_24=true

TZ_DATE=true

example

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL