JuliaPy / JuliaPy/PyCall.jl

Conversion from python `datetime.datetime` to julia `DateTime` is lossy

Open
#341 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Python's `datetime.datetime` type contains timezone info in the `tzinfo` attribute that gets lost when converting to julia's `DateTime`. It might be better to use `ZonedDateTime` if `tzinfo` is populated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing PyCall.jl's conversion handling for Python datetime.datetime and Julia DateTime. Check how a populated tzinfo should map to ZonedDateTime, while preserving behavior for datetimes without timezone information; the issue is done when timezone data is no longer lost and the conversion behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.