Ask Your Question
2

How to Set Week to Start on Saturday?

asked 2018-02-22 04:19:10 -0500

hms10 gravatar image

updated 2018-03-01 15:33:43 -0500

How to Set Week to Start on Saturday? The problem is if I choose Arabic format, numbers will be in Arabic and I want numbers to be in English

Here is my configuration

LCDATE=enUS.UTF-8

LCNUMERIC=enEG.UTF-8

LANG=enGB.UTF-8 LCTIME=en_EG.UTF-8

LCMONETARY=enEG.UTF-8

LCPAPER=enEG.UTF-8

LCMEASUREMENT=enEG.UTF-8

edit retag flag offensive close merge delete

Comments

Please do try to provide more context when posting questions. It’s unclear what your current configuration is, and what you want the end result to be.

Aeyoun gravatar imageAeyoun ( 2018-02-28 15:11:49 -0500 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2018-02-28 15:11:01 -0500

Aeyoun gravatar image

You want to learn a little bit about glibc locale variables. Then you’ll probably want to edit /etc/locale.conf to contain: LC_DATE=en_US.UTF-8 and LC_NUMERIC=en_US.UTF-8.

edit flag offensive delete link more

Comments

This made the week started in Sunday. I need the calendar to start on Saturday

hms10 gravatar imagehms10 ( 2018-03-01 15:32:08 -0500 )edit

@hms10 my apoloogies, I read that as Sunday and not Saturday. I’m not sure which locales start on Saturday. You’ll have to look into that, or maybe create your own locale (documentation for that in the above link).

Aeyoun gravatar imageAeyoun ( 2018-03-01 16:43:19 -0500 )edit
1

answered 2018-03-01 16:03:13 -0500

sideburns gravatar image

I took a look at the page referenced above, and checked the definitions for LCTIME. It says that firstweekday defaults to 1, for Sunday and first_workday to 2, for Monday. You may need to comment out those definitions (for safety) and change them to 7 and 1 respectively. Alas, I don't think that this would survive an update to the file (I've had that issue with other packages, so I know what it's like.) but if it works, it would at least show us that we're heading in the right direction.

edit flag offensive delete link more

Comments

1

This refers to the files in the localedata/locales directory found in the glibc source code. The git repository can be found here:

git clone git://sourceware.org/git/glibc.git
villykruse gravatar imagevillykruse ( 2018-03-02 00:01:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-02-22 04:19:10 -0500

Seen: 82 times

Last updated: Mar 01