PrettyTime
PrettyTime是一个开源的时间格式化类库。它能够将时间格式成易于用户阅读的格式,如"12分钟前"、"2天前"、"至今3个月"等。易于使用。完全可定制,可以创建属于自己TimeUnit和TimeFormat对象。能够与JSF框架集成使用。
PrettyTime is an OpenSource time formatting library. Completely customizable, PrettyTime creates human readable, relative timestamps like those seen on Digg, Twitter, and Facebook.
Features:
- Generate human-readable timestamps like, “right now”, “2 days ago”, or “3 months from now”
- Simple single interface – easy to learn.
- Entirely customizable. Provide your own TimeUnit and TimeFormat objects for complete control.
- Provided integration for the JSF web-application framework