Skip to content

Support microsecond timestamp resolution#881

Open
zbleness wants to merge 1 commit intospdx:mainfrom
zbleness:microseconds
Open

Support microsecond timestamp resolution#881
zbleness wants to merge 1 commit intospdx:mainfrom
zbleness:microseconds

Conversation

@zbleness
Copy link
Contributor

@zbleness zbleness commented Mar 1, 2026

The dateTimeStamp XML standard type supports fractional second notation: https://www.w3.org/TR/xmlschema11-2/#dateTimeStamp

Before this patch, the tool crashed when fractional timestamps were given in e.g. CreationInfo.

Current implementation is limited to microsecond resolution. More fine-grained timestamps (nanosecond), will be silently truncated to microsecond resolution.

The dateTimeStamp XML standard type supports fractional
second notation: https://www.w3.org/TR/xmlschema11-2/#dateTimeStamp

Before this patch, the tool crashed when fractional timestamps were given
in e.g. CreationInfo.

Current implementation is limited to microsecond resolution.
More fine-grained timestamps (nanosecond), will be silently
truncated to microsecond resolution.

Signed-off-by: Zalan Blenessy <zalan.blenessy@volvocars.com>
@zbleness
Copy link
Contributor Author

zbleness commented Mar 1, 2026

PR Checks pass, please review.

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.

1 participant