ocpsoft/prettytime
Social Style Date and Time Formatting for Java observed · 2026-08-28
Health v2 · maintenance only
52/100
- Activity 44
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5742
- days_rel: n/a
- days_push: 338
- n_releases_24m: 0
Adoption not part of the score
1324 stars · 252 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PrettyTime is an open-source Java library for formatting dates and times as human-readable, relative timestamps in a social media style (e.g., 'a few minutes ago'). It is fully customizable, supports the JDK 8 DateTime API, and works on Android.
Use cases
- display '5 minutes ago' style timestamps in a Java app
- format relative dates like Twitter or Facebook in Android
- convert Date objects to human-readable strings
- localize relative time formatting in multiple languages
- show comment or post ages in a web application
When to choose
- you need social-style relative time formatting in Java or Android
- you want a small, customizable, well-established library with broad language support
- you need JDK 8 java.time API support
When to avoid
- you need precise, absolute date formatting (use java.time formatters)
- you are not on the JVM platform
- you need to parse natural language dates (see PrettyTime NLP instead)
Facets
library · maturity stable
date-time internationalization developer-tools web-development jvm cross-platform relative-time human-readable-timestamps social-style-formatting java-library localization android
8 sources
- readme: https://github.com/ocpsoft/prettytime · fetched 2026-08-28 · 873d1cc2685e
- homepage: http://ocpsoft.org/prettytime/ · fetched 2026-08-29 · ddb33e0fa400
- site_page: https://www.ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation · fetched 2026-08-29 · f2ac239e7200
- site_page: https://www.ocpsoft.org/java/getting-started-quickly-with-hibernate-annotations · fetched 2026-08-29 · 190fdd304659
- site_page: http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html · fetched 2026-08-29 · a1234e5d027e
- site_page: https://www.ocpsoft.org/topdecked · fetched 2026-08-29 · b294c1ba9e33
- site_page: https://www.ocpsoft.org/releases/prettytime-5-0-0-final-released-new-apis-jdk-8-datetime-support · fetched 2026-08-29 · ac5b5b831f49
- site_page: https://www.ocpsoft.org/releases/rewrite-3-4-0-final-release-announcement · fetched 2026-08-29 · 325a6ceb4a4c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ocpsoft/prettytime | main | 52 |
For agents
markdown · JSON · MCP: product_card(name="ocpsoft/prettytime")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem