[ 
https://issues.apache.org/jira/browse/LANG-1680?focusedWorklogId=769611&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-769611
 ]

ASF GitHub Bot logged work on LANG-1680:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/May/22 12:57
            Start Date: 12/May/22 12:57
    Worklog Time Spent: 10m 
      Work Description: stevebosman-oc commented on PR #892:
URL: https://github.com/apache/commons-lang/pull/892#issuecomment-1124961000

   Is it safe to that only locales with 12 months are supported? In theory some 
locales can have thirteen months, although I am not sure there are any 
supported by Locales in the standard Java library.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 769611)
    Time Spent: 50m  (was: 40m)

> FastDateFormat does not support the 'L'-Pattern from SimpleDateFormat
> ---------------------------------------------------------------------
>
>                 Key: LANG-1680
>                 URL: https://issues.apache.org/jira/browse/LANG-1680
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>    Affects Versions: 3.12.0
>         Environment: All
>            Reporter: Michael Krause
>            Priority: Minor
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The MMM-Pattern in SimpleDateFormat is context-sensitve. 
> If you execute
> {{{{FastDateFormat.getInstance("MMMyy", 
> Locale.GERMAN).format(Calendar.getInstance())}}}}
> You get "Jan.22". Observer the dot after 'Jan'.  If you do the equivalent 
> with SimpleDateFormat with 'LLLyy' instead as the pattern 
> {{{{new SimpleDateFormat("LLLyy", 
> Locale.GERMANY).format(Calendar.getInstance().getTime());}}}}
> you get "Jan22" as expected. 
>  
> If the 'L'-Pattern is used with FastDateFormat, it throws an 
> IllegalArgumentException
> {{java.lang.IllegalArgumentException: Illegal pattern component: LLL}}{{    
> at 
> org.apache.commons.lang3.time.FastDatePrinter.parsePattern(FastDatePrinter.java:311)}}{{
>  }}
> {{The Source shows that the L-Pattern is not implemented.}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to