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

29 lines
946 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 (v0.26)
description: API reference for qiskit.providers.ibmq.utils.seconds_to_duration in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.providers.ibmq.utils.seconds_to_duration
---
<span id="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.13/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>