public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
To: jsm28@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c/3190 Re: warning: `%y' yields only last 2 digits of year
Date: Tue, 12 Mar 2002 15:16:00 -0000	[thread overview]
Message-ID: <20020312231601.14125.qmail@sources.redhat.com> (raw)

The following reply was made to PR c/3190; it has been noted by GNATS.

From: dewar@gnat.com (Robert Dewar)
To: dewar@gnat.com, jsm28@cam.ac.uk
Cc: clock@atrey.karlin.mff.cuni.cz, gcc-gnats@gcc.gnu.org,
	gcc@gcc.gnu.org, geoffk@geoffk.org
Subject: Re: c/3190 Re: warning: `%y' yields only last 2 digits of year
Date: Tue, 12 Mar 2002 18:06:33 -0500 (EST)

 <<That date has six possible interpretations (the order of preference
 between them being culturally dependent).  Unless you have some
 arrangement as to the interpretation of such dates with anyone who might
 read them, they hardly seem like a good idea to write - certainly, when
 such dates appear on web pages, they generally are confusing and it's a
 matter of second-guessing the intent of the writer.  I'd always use
 yyyy-mm-dd (ISO 8601 format) in such a case, given a free-format date
 field.
 >>
 
 Wait a moment, you are obfuscating with irrelevancy here :-)
 
 I *specifically* talked about the date on a check (and given the spelling,
 I had in mind a US check, and not a british cheque). The interpretation
 of the date is quite unambiguous here, and I definitely do NOT suggest
 thgat you try to use the ISO format in that context.
 
 Actually I prefer in more general contexts to write something like 
 Mar 16 '02 which is clear to all (of course in those very rare contexts
 where the century is not clear from context it is OK to use 2002).
 
 But all this irrelevant discussion has nothing to do with the warning. 
 %y is a perfectly well defined, and useful function. it is reasonable
 to assume that anyone using this function knows what it does and means
 to use it.
 
 By the way, I have often filled out goverment forms that allowed precisely
 two digits for the year :-)


             reply	other threads:[~2002-03-12 23:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-12 15:16 Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-12 14:56 Joseph S. Myers
2002-03-12 14:56 Joe Buck
2002-03-12 14:46 Robert Dewar
2002-03-12 14:16 Joseph S. Myers

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=20020312231601.14125.qmail@sources.redhat.com \
    --to=dewar@gnat.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=jsm28@gcc.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.
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).