Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
UTCDateTime(year=..., julday=366) givin wrong output on non-leap years #2369
@DominikStr you could work on this.
This has to changed to take into account leap years:
I think simplest would be to query
I'd still say using a function provided by the standard library is the preferred way to go. Custom code we have to maintain ourselves (even if this might never change unless the sun falls from the sky) but if we use standard library high level routines we don't have to care about maintenance ;-)
This is a dangerous thought.. the more often it comes up the sloppier everybody gets with test cases. Please add a simple regression test. Shouldn't take too long and everybody's happy. :-)