[ILUG] the first day of the week?
Pádraig Brady
P at draigBrady.com
Wed Mar 4 11:34:02 GMT 2009
Ciaran Johnston wrote:
> Pádraig Brady wrote:
>> As the following script shows, the locale for IE on linux
>> has Sunday as the first day of the week. I always think
>> of Sunday as the last day and the UK locale concurs.
>> Where could I lookup the "right" answer?
>
> ISO 8601:2004 could be a good place to start:
>
> http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm
>
> zipped PDF:
>
> http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&nodeid=4021199
>
> Table 2 — Calendar days
> Ordinal day number in
> the week Calendar day name
> 1 Monday
> 2 Tuesday
> 3 Wednesday
> 4 Thursday
> 5 Friday
> 6 Saturday
> 7 Sunday
That standard is separate to locales though.
I checked with the ICU locale database:
http://demo.icu-project.org/icu-bin/locexp?d_=en&_=en_IE
and it also says Sunday for Ireland and Monday for UK.
But then it was pointed out that on a newer glibc
(on ubuntu 8.04) Ireland has been changed to Monday.
I also checked http://www.timeanddate.com/calendar/
and it had calendars for the US starting on Sunday,
and Monday for both Ireland and the UK.
So it looks like my locale database (and ICU) is out of date.
cheers,
Pádraig.
More information about the ILUG
mailing list