33 lines
925 B
Plaintext
33 lines
925 B
Plaintext
---
|
||
title: utc_to_local (v0.31)
|
||
description: API reference for qiskit.providers.ibmq.utils.utc_to_local in qiskit v0.31
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.providers.ibmq.utils.utc_to_local
|
||
---
|
||
|
||
<span id="qiskit-providers-ibmq-utils-utc-to-local" />
|
||
|
||
# qiskit.providers.ibmq.utils.utc\_to\_local
|
||
|
||
<Function id="qiskit.providers.ibmq.utils.utc_to_local" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-ibmq-provider/tree/stable/0.17/qiskit/providers/ibmq/utils/converters.py" signature="utc_to_local(utc_dt)">
|
||
Convert a UTC `datetime` object or string to a local timezone `datetime`.
|
||
|
||
**Parameters**
|
||
|
||
**utc\_dt** (`Union`\[`datetime`, `str`]) – Input UTC datetime or string.
|
||
|
||
**Return type**
|
||
|
||
`datetime`
|
||
|
||
**Returns**
|
||
|
||
A `datetime` with the local timezone.
|
||
|
||
**Raises**
|
||
|
||
**TypeError** – If the input parameter value is not valid.
|
||
</Function>
|
||
|