You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That daysBetween(beginningOfYear, ymd) stuff should be extracted out into its own function, once we have this. Calculating the "day of year" for a LocalDate seems useful.
mlms13
changed the title
Add YMD.daysBetween
Add LocalDate.daysBetween
Aug 9, 2019
daysBetween(a, b)
should return anint
number of days. Adding that number of days toa
should yieldb
, e.g.If the first value is less than the second value, the returned result should be positive (e.g.
daysBetween(yesterday, today) == 1
.Among other things, this could be useful for determining how far into a year a given date is (as a percentage):
The text was updated successfully, but these errors were encountered: