tzone

command module
v0.0.0-...-b395189 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 14 Imported by: 0

README

tzone - A simple CLI timezone visualizer.

cover

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

examples:
  tzone UTC
  tzone UTC,Local
  tzone Asia/Jakarta
  tzone Asia/Jakarta:Deden
  tzone Asia/Jakarta:Deden:9:17
  tzone UTC,Asia/Jakarta:Deden:9:17

Zone format is a comma delimited set of:

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

You can set YAML zones in your home directory ~/.tzone:

- tz: "UTC"
- tz: "local"
  name: "Deden"
  start: 9 
  end: 17

You can also set via envrionment variables:

TZ_ZONES="UTC,Asia/Jakarta:Matt:8:17,Asia/Jakarta:Deden: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