]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4996 Update issue debt to seconds (backend + display)
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 20 Feb 2014 07:29:44 +0000 (08:29 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 25 Feb 2014 17:55:24 +0000 (18:55 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDurationFactory.java

index 03a2ed62b8ef98e006f6bcc0d439aee5580ec68f..79ac141f56761f1ed238403e26169b9ab4e5ba83 100644 (file)
@@ -55,4 +55,11 @@ public final class WorkDurationFactory implements BatchComponent, ServerComponen
     return settings.getInt(CoreProperties.HOURS_IN_DAY);
   }
 
+  /**
+   * @since 4.3
+   */
+  public WorkDuration createFromSeconds(long durationInSeconds) {
+    return WorkDuration.createFromSeconds(durationInSeconds, hoursInDay);
+  }
+
 }