Skip to content

How to get msecs from PyTime API in 3.13? #124088

Closed
@tonybaloney

Description

@tonybaloney

Bug report

Bug description:

In 3.12 and below, with a _Py_Time handle I could get the milliseconds for a time struct:

msecs = _PyTime_AsMilliseconds(ctime, _PyTime_ROUND_CEILING);

The _PyTime_AsMilliseconds API has moved to the internal API so is no longer importable from an extension module. The new C APi for PyTime doesn't include an msecs conversion method, what should we use?

Thanks,

CPython versions tested on:

3.13

Operating systems tested on:

Linux, macOS, Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions