StephenOTT / STIX-Java

STIX 2.x Java Library
MIT License
27 stars 13 forks source link

Need to redefine Timestamp pattern #93

Closed anlklsim closed 5 years ago

anlklsim commented 5 years ago

According to the spec, the sub-seconds are optional in any field that uses a timestamp. The format is " YYYY-MM-DDTHH:mm:ss[.s+]Z where the “s+” represents 1 or more sub-second values. The brackets denote that sub-second precision is optional, and that if no digits are provided, the decimal place MUST NOT be present."

Therefore, the code needs to accommodate that for validation and serialization.

StephenOTT commented 5 years ago

This work has started and is also in discussion with STIX CTI user group mailing list

StephenOTT commented 5 years ago

This work is pending merge as part of https://github.com/StephenOTT/STIX-Java/pull/94