Start of week for locale using Joda-Time

后端 未结 7 2142
旧时难觅i
旧时难觅i 2020-11-28 10:20

How do you determine which day of the week is considered the “start” according to a given Locale using Joda-Time?

Point: Most countries use the international standard

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 10:49

    Joda-Time uses the ISO standard Monday to Sunday week.

    It does not have the ability to obtain the first day of week, nor to return the day of week index based on any day other than the standard Monday. Finally, weeks are always calculated wrt ISO rules.

提交回复
热议问题