Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible bug?
- X-seq: zsh-workers 9180
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Possible bug?
- Date: 2 Jan 2000 01:06:08 GMT
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <20000101030505.A1857@xxxxxxxxxxxxxxxxxxxxx> from Mike Perez at <E124ZIb-0006f0-00@xxxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Zefram <zefram@xxxxxxxx> typed:
: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
>From my strftime(3):
" %G is replaced by the ISO 8601 year with century as a decimal number.
%V is replaced by the week number of the year (Monday as the first day
of the week) as a decimal number [01,53]. According to ISO 8601
the week containing January 1 is week 1 if it has four or more days
in the new year, otherwise it is week 53 of the previous year, and
the next week is week 1. The year is given by the `%G' conversion
specification."
Regards,
--
Geoff Wing : <gcw@xxxxxxxxx> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@xxxxxxx> Phone : (Australia) 0413 431 874
Messages sorted by:
Reverse Date,
Date,
Thread,
Author