public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
From: "digitalfreak at lingonborough dot com" <sourceware-bugzilla@sourceware.org>
To: libc-locales@sourceware.org
Subject: [Bug localedata/17426] en_IN: set date format
Date: Fri, 10 Aug 2018 12:57:00 -0000	[thread overview]
Message-ID: <bug-17426-716-ZOj1vPZEhh@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17426-716@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17426

Rafal Luzynski <digitalfreak at lingonborough dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |digitalfreak@lingonborough.
                   |                            |com

--- Comment #6 from Rafal Luzynski <digitalfreak at lingonborough dot com> ---
I've just checked few locales in CLDR and they seem to copy the content of
d_fmt in glibc locale data (which is later used by `date +%x') from  Date &
Time -> Gregorian -> Formats - Standard - Date Formats -> short.  For en_IN is
says "dd/MM/yy" which translates to "%d/%m/%y" in glibc terms.  Also I saw that
some locales do not follow strictly the rule when it says "only 2 digits for a
year" and they use four digits instead.  (That means: they use "%Y" instead of
"%y".)  So for me it is fine to set d_fmt for en_IN to "%d/%m/%y" if nobody
opposes or "%d/%m/%Y" if you prefer this.

(In reply to Arjun Shankar from comment #5)
> [...]
> I must add that the format string guideline [4] is not clear upon the
> difference between 'y' and 'yy', but it appears to me from the examples that
> 'y' represents the full year '2014' and 'yy' represents the year with the
> century truncated '14'.
> 
> [...]
> 
> [4] http://cldr.unicode.org/translation/date-time

The link says that 'y' is as many digits as necessary while 'yy' is always
exactly 2 digits (truncated) and 'yyyy' is always exactly 4 digits (zero padded
IIUC).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2018-08-10 12:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 14:49 [Bug localedata/17426] New: date format not set for en_IN arjun.is at lostca dot se
2014-09-23 21:15 ` [Bug localedata/17426] " pranav913 at gmail dot com
2014-09-23 21:16 ` arjun.is at lostca dot se
2014-09-24 10:58 ` arjun.is at lostca dot se
2014-09-24 12:39 ` arjun.is at lostca dot se
2014-09-24 12:39 ` pravin.d.s at gmail dot com
2014-09-24 14:00 ` arjun.is at lostca dot se
2016-02-06  0:38 ` fweimer at redhat dot com
2016-02-06  0:51 ` [Bug localedata/17426] en_IN: set date format vapier at gentoo dot org
2018-08-10 12:57 ` digitalfreak at lingonborough dot com [this message]
2018-08-27 10:20 ` digitalfreak at lingonborough dot com
2018-08-27 22:26 ` cvs-commit at gcc dot gnu.org
2018-08-30 10:55 ` [Bug localedata/17426] Indian locales: set the correct " digitalfreak at lingonborough dot com
2018-09-04 21:56 ` digitalfreak at lingonborough dot com
2018-09-05 21:59 ` cvs-commit at gcc dot gnu.org
2018-09-05 22:06 ` digitalfreak at lingonborough dot com
2019-01-31 17:19 ` cvs-commit at gcc dot gnu.org

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=bug-17426-716-ZOj1vPZEhh@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libc-locales@sourceware.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).