wdate

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT, BSD-2-Clause Imports: 10 Imported by: 0

README

wdate - print current time in several timezone

Install:

go get github.com/suapapa/tools/wdate

Usage:

It prints current time in local timezone:

$ wdate
Sat, 2016-01-23 19:20:06 KST +0900

You can add other timezone with name and offset:

$ wdate add PST -0800
$ wdate add SGT +0800

$ wdate
Sat, 2016-01-23 19:24:28 KST +0900
Sat, 2016-01-23 02:24:28 PST -0800
Sat, 2016-01-23 18:26:32 SGT +0800

Or remove timezone with name:

$ wdate remove SGT

$ wdate
Sat, 2016-01-23 19:35:05 KST +0900
Sat, 2016-01-23 02:35:05 PST -0800

Also, change fmt of output:

$ wdate fmt "2006-01-02 15:04:05 MST"
2016-01-24 19:05:22 KST
2016-01-24 02:05:22 PST

Reference

License

Copyright (c) 2016, Homin Lee. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

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