qiskit-documentation/docs/api/qiskit/0.27/qiskit.providers.ibmq.utils...

27 lines
859 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: seconds_to_duration
description: API reference for qiskit.providers.ibmq.utils.seconds_to_duration
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.providers.ibmq.utils.seconds_to_duration
---
# qiskit.providers.ibmq.utils.seconds\_to\_duration
<Function id="qiskit.providers.ibmq.utils.seconds_to_duration" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-ibmq-provider/tree/stable/0.14/qiskit/providers/ibmq/utils/converters.py" signature="seconds_to_duration(seconds)">
Converts seconds in a datetime delta to a duration.
**Parameters**
**seconds** (`float`) Number of seconds in time delta.
**Return type**
`Tuple`\[`int`, `int`, `int`, `int`, `int`]
**Returns**
A tuple containing the duration in terms of days, hours, minutes, seconds, and milliseconds.
</Function>