[ILUG] the first day of the week?
Ciaran Johnston
cj at nologic.org
Wed Mar 4 11:02:18 GMT 2009
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
>
> for LANG in en_IE en_GB; do
> date -d"$(locale week-1stday) +$(($(locale first_weekday)-1))day" +%a
> done
>
> Sun
> Mon
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
>
More information about the ILUG
mailing list