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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
go get github.com/gophergala2016/wdate.git
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
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.