This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 44c5d39be LANG-1638: Added docs regarding week year support (#924)
44c5d39be is described below
commit 44c5d39becfcfdcc8b2bd0cab4aa705a36f59da3
Author: Andrew Thomas <[email protected]>
AuthorDate: Sat Aug 27 11:41:05 2022 -0700
LANG-1638: Added docs regarding week year support (#924)
* LANG-1638: Added docs regarding week year support
* Moved comment from method to class level
* Added link to explanation of week vs calendar year
---
src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
index 1410e0c3a..1688c31e4 100644
--- a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java
@@ -30,6 +30,10 @@ import java.util.TimeZone;
* <p>Note that the JDK has a bug wherein calling Calendar.get(int) will
* override any previously called Calendar.clear() calls. See LANG-755.</p>
*
+ * <p>Note that when using capital YYYY instead of lowercase yyyy, the
formatter
+ * will assume current year as week year is not supported. See {@link
java.util.GregorianCalendar}
+ * Week Year section for an explanation on the difference between calendar and
week years.</p>
+ *
* @since 2.0
*/
public class DateFormatUtils {