Prefer Instant#truncatedTo(TemporalUnit) over less efficient alternatives
Apache 2.0Note that Instant#toEpochMilli() throws an ArithmeticException for dates
very far in the past or future, while the suggested alternative doesn't.
tech. picnic. errorprone. refasterrules. TimeRulesRecipes$InstantTruncatedToChronoUnitMillisRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. TimeRulesRecipes$InstantTruncatedToChronoUnitMillisRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.