Issue 108348

Summary: util::DateTime cannot represent XML-Schema P2 dateTime
Product: App Dev Reporter:
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, jsc, michael.brauer, ooo, tobias
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description 2010-01-15 12:43:07 UTC

In the XML-Schema 2 specification, the datatype dateTime has several
aspects that our current UNO API css::util::DateTime struct cannot represent:

1. negative values
An XMLSchema-2 dateTime may have an "-" prefix to denote negative dates (BCE).
util::DateTime has all unsigned members, and no sign field.

2. fractional second precision
XMLSchema-2 specifies that fractional seconds must be supported with
at least 3 decimal digits of precision.
util::DateTime only has HundredthSeconds precision.

3. timezones
An XMLSchema-2 dateTime may contain a timezone offset.
util::DateTime has no timezone support.
It would be possible to convert all timezoned values to UTC on import;
however, timezoned values must sill be distinguishable from non-timezoned
values, which are specified to be in some unknown timezone, and thus are
not in general comparable with timezoned values.
Comment 1 Marcus 2017-05-20 11:28:06 UTC
Reset assigne to the default "".