Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Jan 2020 01:05:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 242998] x11-clocks/xclock: Digital strftime %G now gives year as 2020. It should be still 2019
Message-ID:  <bug-242998-7141-6sN6ucjUrM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242998-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242998-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242998

--- Comment #4 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Niclas Zeising from comment #3)

I think it's just a matter of usage.
It should be used as follows:
xclock -d -update 86400 -strftime '%G-%V-%u'

Reading man 3 strftime makes it difficult to understand the relationship li=
ke
the result of the following command:
for d in $(jot 10 0) ; do date -v 2019y -v 12m -v 28d -v +${d}d '+%a %Y-%m-=
%d
%G-%V-%u %Y-%U-%w %Y-%W-%u' ; done

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242998-7141-6sN6ucjUrM>