Skip to content

Conversation

@robert-s-ubi
Copy link
Contributor

ISO8601 does not specify that fractional seconds shall be omitted if given. Enforce that an on full seconds, the millis resolution is retained for outgoing messages and that incoming messages of any precision can be parsed.

On incoming messages with...

  • ...seconds precision, assume that millis are zero.
  • ...millis precision, assume that micros are zero.
  • ...micros precision, assume that nanos are zero.

This retains proper timestamp comparison.

ISO8601 does not specify that fractional seconds shall be omitted if
given. Enforce that an on full seconds, the millis resolution is
retained for outgoing messages and that incoming messages of any
precision can be parsed.

On incoming messages with...
* ...seconds precision, assume that millis are zero.
* ...millis precision, assume that micros are zero.
* ...micros precision, assume that nanos are zero.

This retains proper timestamp comparison.
@robert-s-ubi robert-s-ubi merged commit 58f020a into master Dec 5, 2025
4 checks passed
@robert-s-ubi robert-s-ubi deleted the ensure_millis_precision_in_timestamps branch December 5, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants