gophergala2016/wdate

Name: wdate

Owner: gophergala2016

Description: null

Created: 2016-01-23 04:20:16.0

Updated: 2017-05-02 02:14:28.0

Pushed: 2016-01-24 10:49:44.0

Homepage: null

Size: 14

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

wdate - print current time in several timezone

Install:
go get github.com/gophergala2016/wdate.git
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.