GNU bug report logs -
#45608
28.0.50; calendar-iso-date-string: "Day 6 of week 53 of 2020"
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Sat, 2 Jan 2021 11:05:02 UTC
Severity: normal
Tags: notabug
Found in version 28.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45608 in the body.
You can then email your comments to 45608 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 11:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jean Louis <bugs <at> gnu.support>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 02 Jan 2021 11:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(calendar-iso-date-string) gives following information on this day:
"Day 6 of week 53 of 2020" which I consider wrong as it is 2021 and
the year has 52 weeks normally, the days at begin of the new year
should not be considered past year.
In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
of 2021-01-01 built on protected.rcdrun.com
Repository revision: 30a1d5da7a43d51a97cbe8d91add9a26dd99df90
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11907000
System Description: Hyperbola GNU/Linux-libre
Configured using:
'configure --prefix=/package/text/emacs --with-modules
--with-x-toolkit=lucid
PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON
PDUMPER LCMS2
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: de_DE.UTF-8
value of $XMODIFIERS: @im=exwm-xim
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Memory information:
((conses 16 1107464 508288)
(symbols 48 47280 1)
(strings 32 278217 50104)
(string-bytes 1 7843359)
(vectors 16 110520)
(vector-slots 8 2338233 151130)
(floats 8 846 1198)
(intervals 56 48809 42517)
(buffers 984 206))
--
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 11:33:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 45608 <at> debbugs.gnu.org (full text, mbox):
On Sat, Jan 02, 2021 at 12:03:16PM +0100, Jean Louis wrote:
>
> (calendar-iso-date-string) gives following information on this day:
> "Day 6 of week 53 of 2020" which I consider wrong as it is 2021 and
> the year has 52 weeks normally, the days at begin of the new year
> should not be considered past year.
You'd best take that up with ISO, as this is how ISO dates work.
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 11:34:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 45608 <at> debbugs.gnu.org (full text, mbox):
Jean Louis <bugs <at> gnu.support> writes:
> (calendar-iso-date-string) gives following information on this day:
> "Day 6 of week 53 of 2020" which I consider wrong as it is 2021 and
> the year has 52 weeks normally, the days at begin of the new year
> should not be considered past year.
https://en.wikipedia.org/wiki/ISO_week_date
"An ISO week-numbering year (also called ISO year informally) has 52 or
53 full weeks. That is 364 or 371 days instead of the usual 365 or 366
days. The extra week is sometimes referred to as a leap week, although
ISO 8601 does not use this term. Weeks start with Monday. Each week's
year is the Gregorian year in which the Thursday falls. The first week
of the year, hence, always contains 4 January. ISO week year numbering
therefore slightly deviates from the Gregorian for some days close to 1
January."
Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Jan 2021 11:34:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
45608 <at> debbugs.gnu.org and Jean Louis <bugs <at> gnu.support>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Jan 2021 11:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 11:42:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 45608 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 02 Jan 2021 12:03:16 +0100
> From: Jean Louis <bugs <at> gnu.support>
>
> (calendar-iso-date-string) gives following information on this day:
> "Day 6 of week 53 of 2020" which I consider wrong as it is 2021 and
> the year has 52 weeks normally, the days at begin of the new year
> should not be considered past year.
When a week starts in year Y and ends in year Y+1, what would you want
to see instead? Saying "week 1 of 2021" would be wrong for the same
reason.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 12:43:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 45608 <at> debbugs.gnu.org (full text, mbox):
On Jan 02 2021, Jean Louis wrote:
> the year has 52 weeks normally
That is not possible, as 52 weeks can only cover 364 days.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 17:19:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 45608 <at> debbugs.gnu.org (full text, mbox):
> > (calendar-iso-date-string) gives following information on this day:
> > "Day 6 of week 53 of 2020" which I consider wrong as it is 2021 and
> > the year has 52 weeks normally, the days at begin of the new year
> > should not be considered past year.
>
> https://urldefense.com/v3/__https://en.wikipedia.org/wiki/ISO_week_date__;!!G
> qivPVa7Brio!LxlLxRzS6V8fuHzPVAnAczqQvPR708E_qdx6x3He2wfh95sRUnSwi7xVfdtCWDxz$
>
> "An ISO week-numbering year (also called ISO year informally) has 52 or
> 53 full weeks. That is 364 or 371 days instead of the usual 365 or 366
> days. The extra week is sometimes referred to as a leap week, although
> ISO 8601 does not use this term. Weeks start with Monday. Each week's
> year is the Gregorian year in which the Thursday falls. The first week
> of the year, hence, always contains 4 January. ISO week year numbering
> therefore slightly deviates from the Gregorian for some days close to 1
> January."
Very cool. Interesting. Thanks for citing that, Lars.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45608
; Package
emacs
.
(Sat, 02 Jan 2021 18:05:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 45608 <at> debbugs.gnu.org (full text, mbox):
Alright, thank you all for references.
ISO date was kind of interesting in communication with people I know
and I used it for quite a long time.
I will now start using normalized version like:
(calendar-date-string (calendar-current-date))
"Saturday, January 2, 2021"
Jean
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 Jan 2021 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.