You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2018/10/10 19:36:02 UTC

[jira] [Updated] (DAFFODIL-488) Odd Behavior with 'YYYY' year formatting

     [ https://issues.apache.org/jira/browse/DAFFODIL-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Beckerle updated DAFFODIL-488:
--------------------------------------
    Issue Type: Bug  (was: Wish)

> Odd Behavior with 'YYYY' year formatting
> ----------------------------------------
>
>                 Key: DAFFODIL-488
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-488
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, ICU
>            Reporter: Jessie Chab
>            Priority: Minor
>
> I've noticed that if you use 'YYYY' instead of 'yyyy', the year is parsed as one less than the specified year, and the other values are not parsed correctly.
> Response from Steve:
> Regarding the odd output of YYYY: I'm not exactly sure why this doesn't work, but I'm not surprised. From what I can tell, YYYY is the year part of the ISO Week Date. This uses a modified gregorian calendar, so I'm not surprised you're getting odd results. However, I've tried creating a pattern that uses the ISO Week Date formatting symbols ("YYYY-'W'ww-e") and try to parse the examples from the wiki page. I get dates similar to the examples, but they are usually off by a few days. So I'm not sure what's wrong. I don't think this is a blocker for Spin 7, so please create a new bug for the YYYY issue, and we'll fix it as we find time.
> See test datePattern01b in daffodil-test/src/test/resources/daffodil/section05/simple_types/SimpleTypes.tdml



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)