diff options
author | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2016-09-01 13:36:05 +0000 |
---|---|---|
committer | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2016-09-01 13:36:05 +0000 |
commit | 39903907c616d33f19c99e4ac0e8070eed73001b (patch) | |
tree | 576843d9aaf96fdb384790bea18d2225f9282754 /misc | |
parent | - Update math/cryptominisat and math/py-cryptominisat to 5.0.0 (diff) |
New port: misc/timediff
timediff is a simple command line tool to show time pairs
between target timezone and localtime.
$ date
Mon Aug 29 23:10:36 EDT 2016
$ timediff Tokyo
2016-08-30 12:10 JST 2016-08-29 23:10 EDT
2016-08-30 13:10 JST 2016-08-30 00:10 EDT
2016-08-30 14:10 JST 2016-08-30 01:10 EDT
2016-08-30 15:10 JST 2016-08-30 02:10 EDT
2016-08-30 16:10 JST 2016-08-30 03:10 EDT
2016-08-30 17:10 JST 2016-08-30 04:10 EDT
2016-08-30 18:10 JST 2016-08-30 05:10 EDT
2016-08-30 19:10 JST 2016-08-30 06:10 EDT
2016-08-30 20:10 JST 2016-08-30 07:10 EDT
2016-08-30 21:10 JST 2016-08-30 08:10 EDT
The answer is 14:10 JST.
Here is short history of timediff.
timediff is written by Minmin (is a nickname of github account).
He showed it in 20th FreeBSD Workshop Tokyo on Aug, 1st.
WWW: https://github.com/belgianbeer/timediff
PR: 212255
Submitted by: Naito Yuichiro <naito.yuichiro@gmail.com>
Reviewed by: feld (mentor)
Approved by: feld (mentor)
Notes
Notes:
svn path=/head/; revision=421213
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/timediff/Makefile | 31 | ||||
-rw-r--r-- | misc/timediff/distinfo | 3 | ||||
-rw-r--r-- | misc/timediff/pkg-descr | 4 |
4 files changed, 39 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index b072a0124167..bea7caaf48fd 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -450,6 +450,7 @@ SUBDIR += terraform SUBDIR += teseq SUBDIR += teslams + SUBDIR += timediff SUBDIR += tkcron SUBDIR += tkinfo SUBDIR += tkregexp diff --git a/misc/timediff/Makefile b/misc/timediff/Makefile new file mode 100644 index 000000000000..abbface186da --- /dev/null +++ b/misc/timediff/Makefile @@ -0,0 +1,31 @@ +# Created by: Naito Yuichiro <naito.yuichiro@gmail.com> +# $FreeBSD$ + +PORTNAME= timediff +PORTVERSION= 0.1 +CATEGORIES= misc + +MAINTAINER= naito.yuichiro@gmail.com +COMMENT= Showing time pairs between target timezone and localtime + +LICENSE= BSD2CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= belgianbeer +GH_PROJECT= timediff + +PLIST_FILES= sbin/timediff + +NO_ARCH= yes + +do-build: +.for file in timediff + ${SED} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${file} \ + > ${WRKDIR}/${file:T} +.endfor + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/timediff \ + ${STAGEDIR}${PREFIX}/sbin + +.include <bsd.port.mk> diff --git a/misc/timediff/distinfo b/misc/timediff/distinfo new file mode 100644 index 000000000000..54b59f516fc8 --- /dev/null +++ b/misc/timediff/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1472562109 +SHA256 (belgianbeer-timediff-0.1_GH0.tar.gz) = 2fa2643a2884772eba9ba025be358b30177b5bc7e2c7c80436999f5522fde826 +SIZE (belgianbeer-timediff-0.1_GH0.tar.gz) = 2075 diff --git a/misc/timediff/pkg-descr b/misc/timediff/pkg-descr new file mode 100644 index 000000000000..f171a9ae64fc --- /dev/null +++ b/misc/timediff/pkg-descr @@ -0,0 +1,4 @@ +timediff is a simple command line tool to show time pairs +between target timezone and localtime. + +WWW: https://github.com/belgianbeer/timediff |