Lea Verou 2009/4/21

Java pretty dates

Read Original

This article provides a complete Java class called PrettyDate that formats dates into human-readable strings like 'yesterday', '5 minutes ago', or 'last year'. It includes the full source code and explains the logic behind converting timestamp differences into pretty date formats for use in applications.

Java pretty dates

评论

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet