class DateTimeUtils extends TimeUtils {

    public static long parseDuration(String durationStr) {
        if (isPeriod(durationStr)) {
            return getMillis(durationStr);
        } else {
            return TimeUtils.parseTimeString(durationStr);
        }
    }

}