[ILUG] the first day of the week?
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:
Table 2 Calendar days
Ordinal day number in
the week Calendar day name
> for LANG in en_IE en_GB; do
> date -d"$(locale week-1stday) +$(($(locale first_weekday)-1))day" +%a
> 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