unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic James Ferrier <nferrier@tapsellferrier.co.uk>
Cc: emacs-devel@gnu.org
Subject: Re: 'cal 9 1752' and emacs calendar disagree
Date: Wed, 19 Jul 2006 23:28:49 +0100	[thread overview]
Message-ID: <87fygxgrfi.fsf@nicferrier.tapsellferrier.co.uk> (raw)
In-Reply-To: <m264httf3h.fsf@sl392.st-edmunds.cam.ac.uk> (Leon's message of "Wed, 19 Jul 2006 23:16:50 +0100")

Leon <sdl.web@gmail.com> writes:

> Hi there,
>
> For some historical reasons¹, September 1752 is a special month that
> has no 3 - 13 dates. As you can see, 'cal 9 1752' will gives
>
>    September 1752   
> Su Mo Tu We Th Fr Sa
>        1  2 14 15 16
> 17 18 19 20 21 22 23
> 24 25 26 27 28 29 30
>
>
> While emacs calendar gives:
>
>    September 1752    
> Su Mo Tu We Th Fr Sa 
>                 1  2 
>  3  4  5  6  7  8  9 
> 10 11 12 13 14 15 16 
> 17 18 19 20 21 22 23 
> 24 25 26 27 28 29 30
>
> Is this a bug?

No. Unix cal is badly broken in respect of understood calendrical
systems.

Ordinary calendars are consistent within a calendrical system. So if
we accept and use the Gregorian Calendar we count backwards with it as
well as counting forwards.

It does not matter that in a particular locale the Gregorian system
was started on a particular date. Only that a particular locale uses 
the Gregorian system.

Unix cal is only right if you happen to be English or you are American
and accept England's conversion to the Gregorian calendar as the date
when the colonies were converted as well.

But if you are Russian or French or Mexican there is absolutely no
reason to think of cal's 9 1752 behaviour as being in any way
sensible.


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   for all your tapsell ferrier needs

  parent reply	other threads:[~2006-07-19 22:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <sdl.web@gmail.com>
2006-07-19 22:16 ` 'cal 9 1752' and emacs calendar disagree Leon
2006-07-19 22:24   ` Ed Reingold
2006-07-19 22:29     ` Kim F. Storm
2006-07-20 15:32     ` Richard Stallman
2006-07-19 22:28   ` Nic James Ferrier [this message]
2006-07-19 22:36   ` Andreas Schwab
2006-07-19 23:15   ` Leon
2006-07-19 23:24     ` Nic James Ferrier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fygxgrfi.fsf@nicferrier.tapsellferrier.co.uk \
    --to=nferrier@tapsellferrier.co.uk \
    --cc=emacs-devel@gnu.org \
    /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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).