Skip to content

Cannot read DicomTime value with millisecond precision #663

@Enet4

Description

@Enet4

Discussed in #662

Originally posted by rjuengling-hf July 21, 2025
I encountered input that includes a DICOM time value with millisecond precision. This API does not let me read out the millisecond fraction, though. Why is that?

Using dicom-rs, what is the recommended way of reading time values that works for any precision?


#662 (comment) Thank you for spotting that. It may have been overlooked in the current design of the date-time API. We probably need to change fraction() to be more relaxed in the presence of any decimals, and offer more methods to fetch the fraction of a second with the requested precision.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions