Add parsing for datetime.time
Using same patterns as elsewhere in this file (and avoiding timezones like in DateTime), add support for parsing times from the Python datetime package to Julia's Dates.Time struct. This came up as a need I had in a personal project and was a quick addition.
Looks good. Could you add a couple of tests?
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d407513) 67.75% compared to head (c74af34) 68.02%. Report is 2 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #1069 +/- ##
==========================================
+ Coverage 67.75% 68.02% +0.27%
==========================================
Files 20 20
Lines 2025 2036 +11
==========================================
+ Hits 1372 1385 +13
+ Misses 653 651 -2
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 68.02% <100.00%> (+0.27%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good. Could you add a couple of tests?
I added a rountripeq test like for Date and DateTime
ETA: added @test_throws to satisfy coverage checker too
@stevengj bumping since I also forgot about this. Tests have been implemented, check failures seem unrelated to this change.
Looks good, thanks!