How to determine the first day of week in python

后端 未结 4 1938
清歌不尽
清歌不尽 2021-01-15 13:08

Based on the locale I need to find what is the first day of the week (Sunday/Monday) In JAVA I would do:

Calendar FR_cal = Calendar.getInstance(Locale.FRANCE         


        
4条回答
  •  天涯浪人
    2021-01-15 13:37

    Calendars in many European countries, in particular, now follow the ISO decision by starting the week on Monday. Airline timetables also number the days from Monday as 1, Tuesday as 2, Wednesday as 3, etc.

    The above states that Monday should always be the first day of the week.

提交回复
热议问题