29 lines
946 B
Plaintext
29 lines
946 B
Plaintext
---
|
||
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>
|
||
|