使用DurationFormatUtils把时间区间格式化为"天 时:分:秒"
2008-04-14 13:56
831 查看
long l = 12300000000L
DurationFormatUtils.formatDuration(l,"dd'天'HH'小时'mm'分钟'ss'秒'")
输出:142天08小时40分钟00秒
可以参考以前的一篇文章:http://blog.csdn.net/wangjian5748/archive/2007/03/22/1537602.aspx
DurationFormatUtils.formatDuration(l,"dd'天'HH'小时'mm'分钟'ss'秒'")
输出:142天08小时40分钟00秒
可以参考以前的一篇文章:http://blog.csdn.net/wangjian5748/archive/2007/03/22/1537602.aspx
相关文章推荐
- 【转】使用DateFormat把时间长度格式化为"时:分:秒"格式--不错
- 使用DateFormat把时间长度格式化为"时:分:秒"格式
- 为什么使用"use strict"可以节约你的时间
- JAVA字符串格式化-String.format()的使用 【补0】:System.out.printf("补0之后:%03d%n", 7);
- JS获取当前时间并格式化"yyyy-MM-dd HH:mm:ss"
- C# date format 使用C#格式化时间
- 为什么使用"use strict"可以节约你的时间
- SpringMVC 时间转换之使用注解@DateTimeFormat(pattern="yyyy-MM-dd")
- mysql列字段多类型CASE、WHEN与时间字符 类型date_format格式化使用
- 为什么使用"use strict"可以节约你的时间
- java 使用simpleDateFormat格式化日期 时间
- C# date format 使用C#格式化时间
- ASP.NET GridView控件在列上格式化时间及DataFormatString使用
- java 使用simpleDateFormat格式化日期 时间
- 通过 DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="false" 格式化显示时间
- 多语言环境下,使用SimpleDateFormat格式化时间字符串的时候,不能正确显示阿拉伯数字
- SimpleDateFormat 使用方法和中英文时间格式化转换
- struts标签格式化时间<s:date name="neowaveBloodPressure.monitorTime" format="yyyy-MM-dd HH:mm:ss" />
- 使用Date和SimpleDateFormat格式化时间
- ASP.NET GridView控件在列上格式化时间及DataFormatString使用