OpenCDSS / cdss-lib-common-java

Colorado's Decision Support Systems (CDSS) common library (Java)
GNU General Public License v3.0
0 stars 1 forks source link

Need to update DateTime to support less common date/time ISO formats #112

Open smalers opened 3 years ago

smalers commented 3 years ago

There are a few ISO 8601 date/time formats that are not passing automated tests and need to be supported for completeness, as shown in the following SetProperty command test snippet:

SetProperty(PropertyName="DateProp_ISO_YYYYMMDDThhmmssz",PropertyType=DateTime,PropertyValue="20031112T010203Z")
SetProperty(PropertyName="DateProp_ISO_YYYYMMDDThhmmsszplus",PropertyType=DateTime,PropertyValue="20031112T010203+0102")
SetProperty(PropertyName="DateProp_ISO_YYYYMMDDThhmmsszminus",PropertyType=DateTime,PropertyValue="20031112T010203-0102")

Also, handling second fractions as hundredths of seconds or fraction needs to be improved in the DateTime class. Maybe go to fraction and then format to hundredths of a second on output when requested.