Bug 212255 - [NEW PORT] misc/timediff: Showing time pairs between target timezone and localtime
Summary: [NEW PORT] misc/timediff: Showing time pairs between target timezone and loca...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Carlos J. Puga Medina
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 08:00 UTC by Yuichiro NAITO
Modified: 2016-09-01 13:37 UTC (History)
4 users (show)

See Also:


Attachments
ports/misc/timediff (2.40 KB, text/plain)
2016-08-30 08:00 UTC, Yuichiro NAITO
no flags Details
timediff.shar (1.70 KB, patch)
2016-08-30 13:29 UTC, Carlos J. Puga Medina
cpm: maintainer-approval? (naito.yuichiro)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuichiro NAITO 2016-08-30 08:00:35 UTC
Created attachment 174210 [details]
ports/misc/timediff

timediff is a command line tool that shows two different date-time
for target timezone and localtime.

It's useful when I think
"I'm in New York, What time is two hours later from now in Tokyo?"

$ 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.
I made a port of it.

Thanks.
Comment 1 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-08-30 13:29:16 UTC
Created attachment 174214 [details]
timediff.shar

Fix timediff.shar
Comment 2 Mark Felder freebsd_committer freebsd_triage 2016-09-01 13:00:38 UTC
Wow I really like this, and wish it was a utility in the base system...

Approved
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-09-01 13:36:12 UTC
A commit references this bug:

Author: cpm
Date: Thu Sep  1 13:36:05 UTC 2016
New revision: 421213
URL: https://svnweb.freebsd.org/changeset/ports/421213

Log:
  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)

Changes:
  head/misc/Makefile
  head/misc/timediff/
  head/misc/timediff/Makefile
  head/misc/timediff/distinfo
  head/misc/timediff/pkg-descr
Comment 4 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-09-01 13:37:21 UTC
Committed!

Thanks