Issue 98754

Summary: add two digit Numberformat Calendar Week
Product: Calc Reporter: andreschnabel <andre.schnabel>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P5 (lowest) CC: issues, ooo
Version: OOo 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description andreschnabel 2009-02-02 21:50:33 UTC
The current numberformat "Calendar Week" WW will not display a leading zero for
weeks < 10. 

We should offer a format code that guarantees 2 digits with leading zero (02
instead of 2).

suggestion for implementation:
 make WW the two digit format and add W as "Calendar Week without leading zero"
pro: this would be consistent with e.g. MM vs. M
con: changed behaviour of existing format

 leave WW as "Calendar Week without leading zero" and add a new format code
(maybe 0W) as new format code
pro: no change to current behaviour
con: inconsistent with other format codes 

General problem: afair there is no way to handle this in ODF

I'm not sure who should handle this request. Can you please have a look and
reassign (and consider to suggest this for ODF 1.2)
Comment 1 ooo 2009-02-03 12:23:31 UTC
a) is a no-go because of 'con' ;-)
b) would be the way to go, but not with '0W' but 'WWW' instead.

For ODF I think it would be possible to express it with the
number:style="long" attribute, but that would had to be added to the ODF
spec for the <number:week-of-year/> element.