File tree 1 file changed +9
-1
lines changed
src/java.base/share/classes/java/time/temporal
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2012, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2012, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -294,6 +294,14 @@ public final class WeekFields implements Serializable {
294
294
* those extensions. If both "fw" and "rg" are specified, the value from
295
295
* the "fw" extension supersedes the implicit one from the "rg" extension.
296
296
*
297
+ * <p>For example, users who are interested in using an English locale,
298
+ * but want the first day of the week that corresponds with the ISO-8601
299
+ * standard can call
300
+ * {@snippet lang=java :
301
+ * Locale enIsoLoc = Locale.forLanguageTag("en-u-fw-mon");
302
+ * WeekFields.of(enIsoLoc).getFirstDayOfWeek(); // returns MONDAY
303
+ * }
304
+ *
297
305
* @param locale the locale to use, not null
298
306
* @return the week-definition, not null
299
307
*/
You can’t perform that action at this time.
0 commit comments