Replace hudson.Util.getPastTimeString with getTimeSpanString

MSAL

hudson.Util.getPastTimeString has been deprecated since the 2.204.1 LTS release on 2019-12-18.

org.openrewrite.jenkins.migrate.hudson.UtilGetPastTimeStringToGetTimeSpanString
mod run . --recipe=org.openrewrite.jenkins.migrate.hudson.UtilGetPastTimeStringToGetTimeSpanString

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change method name hudson.Util getPastTimeString(long) to getTimeSpanString