From: Zefram <zefram@fysh.org>
To: Mike Perez <mike@ef.net>
Cc: zsh-workers@math.gatech.edu
Subject: Re: Possible bug?
Date: Sun, 2 Jan 2000 00:55:09 +0000 (GMT) [thread overview]
Message-ID: <E124ZIb-0006f0-00@crucigera.fysh.org> (raw)
In-Reply-To: <20000101030505.A1857@mindcrime.corp.ef.net> from Mike Perez at "Jan 1, 2000 03:05:05 am"
Mike Perez wrote:
>Well I am not sure if this is a bug or not, but I was able to reproduce
>it on a few machines that all were in Y2K.
I can reproduce it too:
% date
Sun Jan 2 00:48:08 GMT 2000
% print -P '%D{%G}'
1999
% date +%G
1999
% date +%Y
2000
% print -P '%D{%Y}'
2000
What is %G, anyway? It's not one of the zsh extensions; it's just being
handled by the native strftime(3). My strftime(3) doesn't document %G,
and I don't have its source handy. I expect that %G is the year part
of the week specification for the current week; today is 1999-W52-7,
and 2000-W01 starts tomorrow (2000-01-03 == 2000-W01-1). Ah, look:
% date -d tomorrow
Mon Jan 3 00:52:44 GMT 2000
% date -d tomorrow +%G
2000
-zefram
next prev parent reply other threads:[~2000-01-02 0:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-01 11:05 Mike Perez
2000-01-02 0:51 ` pollux
2000-01-02 0:55 ` Zefram [this message]
2000-01-02 1:06 ` Geoff Wing
-- strict thread matches above, loose matches on Subject: below --
1999-09-16 22:59 possible bug? Glenn Trigg
1999-09-17 0:29 ` Bart Schaefer
1999-09-17 0:36 ` Glenn Trigg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E124ZIb-0006f0-00@crucigera.fysh.org \
--to=zefram@fysh.org \
--cc=mike@ef.net \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).