qiskit.providers.ibmq.utils.utc_to_local¶
-
utc_to_local
(utc_dt)[Quellcode]¶ Convert a UTC
datetime
object or string to a local timezonedatetime
.- Parameter
utc_dt (
Union
[datetime
,str
]) – Input UTC datetime or string.- Rückgabetyp
datetime
- Rückgabe
A
datetime
with the local timezone.- Verursacht
TypeError – If the input parameter value is not valid.