java time Duration plus(longamountToAdd,TemporalUnitunit)用于获取该持续时间的不可变副本。1语法publicDurationplus(longamountToAdd,T
java time Duration plus(Durationduration)方法返回此持续时间的副本,并添加指定的持续时间。1语法publicDurationplus(Durationduration)
java time Duration parse(CharSequencetext)方法从文本字符串(如PnDTnHnMn nS)获取持续时间。1语法publicstaticDurationparse(CharSequenc
java time Duration ofSeconds(longseconds)方法获取表示标准秒数的Duration。1语法publicstaticDurationofSeconds(longseconds)2参数secon
java time Duration ofNanos(longnanos)方法获得表示多个标准纳秒的持续时间。1语法publicstaticDurationofNanos(longnanos)2参数nanos:纳
java time Duration ofHours(longhours)方法获取表示多个标准小时数的持续时间。1语法publicstaticDurationofHours(longhours)2参数hours:
java time Duration ofMinutes(longminutes)方法获得表示多个标准分钟的持续时间。1语法publicstaticDurationofMinutes(longminutes)2参数m
java time Duration ofMillis(longmillis)方法获取表示多个标准小时数的持续时间。1语法publicstaticDurationofMillis(longmillis)2参数mil
java time Duration ofDays(longdays)方法获取表示标准24小时天数的持续时间。1语法publicstaticDurationofDays(longdays)2参数days:天数
java time Duration of(longamount,TemporalUnitunit)方法获取以指定单位表示金额的持续时间。1语法publicstaticDurationof(longamount,Tem