Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 10:42:32 -0400
From:      "A.J. Kehoe IV (Nanoman)" <nanoman@nanoman.ca>
To:        andrew clarke <mail@ozzmosis.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Custom locale to use ISO 8601 date format
Message-ID:  <20150607144231.GA61785@nanocomputer.nanoman.ca>
In-Reply-To: <20150607085130.GA77300@ozzmosis.com>
References:  <20150607085130.GA77300@ozzmosis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

andrew clarke wrote:
>Here in Australia the general population uses the British DD/MM/YY
>format for representing dates, eg. today is 07/06/15, and the
>en_AU.UTF-8 locale in FreeBSD 10.1 honours that:
>
>lrwxr-xr-x  1 root  wheel  22 17 Feb  2011 /usr/share/locale/en_AU.UTF-8/L=
C_TIME -> ../en_GB.UTF-8/LC_TIME
>
>However I wanted programs to use the ISO 8601 YYYY-MM-DD date format
>(2015-06-07) instead. To do this in Linux, the general method seems to
>set LC_TIME=3Den_DK.utf8, but FreeBSD has no locale by that name.

[...]

Thanks for sharing your patch, Andrew!  Personally, I wish everybody would =
adopt ISO 8601, or even ISO 2014, which was standardized twelve years earli=
er in the year 1976.

Canada uses ISO 8601, but this isn't reflected in FreeBSD's en_CA locale, s=
o I submitted this patch:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200079

After somebody commits this patch (or a patch that does something similar),=
 you could use en_CA instead of having to manually patch every system you m=
aintain.

--=20
A.J. Kehoe IV (Nanoman)     |  /"\  ASCII Ribbon Campaign
Nanoman's Company           |  \ /   - No HTML/RTF in E-mail
E-mail: nanoman@nanoman.ca  |   X    - No proprietary attachments
WWW: http://www.nanoman.ca/ |  / \   - Respect for open standards

--17pEHd4RhPHOinZp
Content-Type: application/x-pkcs7-signature
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-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