Function py_fx_local_from_utc

Source
pub fn py_fx_local_from_utc(
    session: ForexSession,
    time_now: DateTime<Utc>,
) -> PyResult<DateTime<Tz>>
Expand description

Converts a UTC timestamp to the local time for the given Forex session.

The time_now must be timezone-aware with its tzinfo set to a built-in datetime.timezone (e.g. datetime.timezone.utc). Third-party tzinfo objects (like those from pytz) are not supported.