Adds support for zero to 9 digits of sub-second precision on dates.
STIX-Java supports zero to 9 digit nanosecond precision with any date that is parsed by STIX-Java.
This means that while a date that was sourced/generated by the STIX-Java library will be at sub-second precision of 3 digits, if you are parsing JSON with greater precision, or you supply a custom Instant with greater precision for a specific field, STIX-Java will support this and store the extra precision.
General rules to understand:
By default, timestamps generated natively by the STIX-Java library will be be with 3 digits of sub-second prevision (millisecond precision).
Sub-second precision of from 0 to 9 digits (9 digits its nano second precision: hh:mm:ss.999999999) is supported. This means you can omit sub-seconds if you choose.
use the static StixDataFormats.getStixDateTimeFormatter() method for retrieving the STIX formatter, whenever you want to manually handle dates.
Json parsing of JSON strings will support all of the above rules.
Adds support for zero to 9 digits of sub-second precision on dates.
General rules to understand:
Fixes #93