[ILUG] the first day of the week?
david.howe at howesystems.com
Wed Mar 4 12:00:24 GMT 2009
On Wed, March 4, 2009 10:53 am, 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?
> for LANG in en_IE en_GB; do
> date -d"$(locale week-1stday) +$(($(locale first_weekday)-1))day" +%a
This agrees with crontab, from man page for crontab:
"day of week 0-7 (0 or 7 is Sun, or use names)"
Sunday is the first day of the week, day "0".
> 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/
Howe Systems Limited-"protecting your data"
Tel: +353 402 93030
Mob: +353 86 328 2903
Registered Address: Rock Big, Arklow, County Wicklow
Place of Registration: Dublin, Ireland.
Company Registration Number:399359
More information about the ILUG