Skip to content

Hamster datetime

Dirk HOFFMANN requested to merge github/fork/ederag/hamster-datetime into master

Created by: ederag

Introduce hamster/lib/datetime.py. This is the first step towards fixing #166 (closed). For now times are still "naive", but this PR should allow us to smoothly shift to "timezone-aware" later on. We also now have full control on the python/sql conversions (does not change anything yet, but creates opportunities).

Bonus: code seems a bit clearer with parsers close to their objects. The ephemeral parsing.py will soon be removed.

Some stuff.py code was transferred to the new datetime.py, but compatibility is retained for a while. Transfer can be finished later.

Merge request reports

Loading