https://github.com/ocpsoft/prettytime
Social Style Date and Time Formatting for Java
https://github.com/ocpsoft/prettytime
Last synced: 12 days ago
JSON representation
Social Style Date and Time Formatting for Java
- Host: GitHub
- URL: https://github.com/ocpsoft/prettytime
- Owner: ocpsoft
- License: apache-2.0
- Created: 2010-12-13T15:25:42.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-11-15T17:50:17.000Z (6 months ago)
- Last Synced: 2025-04-08T21:07:44.793Z (26 days ago)
- Language: Java
- Homepage: http://ocpsoft.org/prettytime/
- Size: 817 KB
- Stars: 1,299
- Watchers: 49
- Forks: 253
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - ocpsoft/prettytime - Social Style Date and Time Formatting for Java (Java)
README
prettytime
==========[](https://central.sonatype.com/artifact/org.ocpsoft.prettytime/prettytime)
Social Style Date and Time Formatting for Java
Learn more at https://www.ocpsoft.org/prettytime/
Java >=1.8 (Support JDK DateTime API)
=======
PrettyTime requires Java/JDK >=1.8 as of version `5.0.0.Final` or higher.Java <=1.7
=======
Users requiring versions of Java/JDK less than or equal to 1.7 should use PrettyTime versions in the 4.x branch: `4.0.6.Final` or lower.Android
=======
To use prettytime in android, first add the following dependency to your app level build.gradleimplementation 'org.ocpsoft.prettytime:prettytime:5.0.8.Final'
ProGuard rules are automatically configured for you if you use the R8 shrinker (which is the default since version 3.4.0 of the Android Gradle Plugin). If you are using an older version of AGP, add the ProGuard rules from [this file](core/src/main/resources/META-INF/proguard/prettytime.pro)
**Note**: To use prettytime in projects with a `minSdkVersion` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required.
DEVELOPMENT
===========
export RELEASE_VERSION="5.x.x.Final"
export SNAPSHOT_VERSION="5.x.x-SNAPSHOT"force-release: mvn release:prepare release:perform -DskipTests=true -DdevelopmentVersion=$SNAPSHOT_VERSION -DreleaseVersion=$RELEASE_VERSION -Dtag=$RELEASE_VERSION -Darguments="-DskipTests=true -Dmaven.test.skip=true"
CODE FORMAT DEFINITIONS/CONFIG
==============================
Please use the following eclipse-style code formatter settings when submitting PRs:https://github.com/ocpsoft/common/blob/master/ocpsoft-eclipse-code-format.xml