jstl 时间相减 向上取整

jstl 时间相减
		<fmt:formatNumber  value="${(rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)/(1000*60*60)}" pattern="#0.0#"></fmt:formatNumber>小时


向上取整
< c:if test =" ${(rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)%(1000*60*60)==0} " >
                   < fmt:formatNumber  value =" ${(rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)/(1000*60*60)} " maxFractionDigits ="1" ></ fmt:formatNumber> 小时
              </ c:if>
              < c:if test =" ${(rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)%(1000*60*60)!=0} " >
                   < fmt:formatNumber  value =" ${((rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)-(rptConfirmYwrb.joinDate.time-rptConfirmYwrb.createTime.time)%(1000*60*60))/(1000*60*60)+1} "   maxFractionDigits ="1" ></ fmt:formatNumber> 小时
              </ c:if>

你可能感兴趣的:(jstl,时间相减,向上取整)