APISonar


org.joda.time.PeriodType.time

> org > joda > time > PeriodType > time
org APIs joda APIs time APIs PeriodType APIs time APIs

Example 1
private static void printScriptRunTime(DateTime startTime) {
        DateTime endTime = new DateTime();
        Duration duration = new Duration(startTime, endTime);
        Period period = duration.toPeriod().normalizedStandard(PeriodType.time());
        log.info("Pig script completed in "
                + PeriodFormat.getDefault().print(period)
                + " (" + duration.getMillis() + " ms)");
    }