Skip to content

Commit

Permalink
v3.0.1 - Improved dates handling for relative time calculations, both…
Browse files Browse the repository at this point in the history
… for the past and for the future
  • Loading branch information
marlonlom committed Dec 4, 2016
1 parent e44d3af commit 9675dec
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 7 deletions.
67 changes: 67 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/markdown-navigator/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
* <i>(2) With Specific Locale (by language tag):</i>
* <br>
* <pre>
* Locale LocaleBylanguageTag = Locale.forLanguageTag("es");
* Locale LocaleByLanguageTag = Locale.forLanguageTag("es");
* TimeAgo.using(new java.util.Date().getTime(), new TimeAgoMessages.Builder().withLocale(LocaleBylanguageTag).build());
* </pre><br>
*
* @author marlonlom
* @version 3.0.0
* @version 3.0.1
* @see TimeAgoMessages
* @since 1.0.0
*/
Expand Down Expand Up @@ -84,7 +84,7 @@ public static String using(final long time, final TimeAgoMessages resources) {
* Build timeago text string builder.
*
* @param resources the resources
* @param dim the dim
* @param dim the distance in minutes from now
* @return the string builder
*/
private static StringBuilder buildTimeagoText(TimeAgoMessages resources, long dim) {
Expand Down Expand Up @@ -187,7 +187,7 @@ private static long getTimeDistanceInMinutes(long time) {
* The enum Periods.
*
* @author marlonlom
* @version 3.0.0
* @version 3.0.1
* @since 2.0.0
*/
private enum Periods {
Expand Down Expand Up @@ -398,7 +398,7 @@ public String getPropertyKey() {
* Interface definition for handling distance validations or periods.
*
* @author marlonlom
* @version 3.0.0
* @version 3.0.1
* @see Periods
* @since 1.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* </p>
*
* @author marlonlom
* @version 3.0.0
* @version 3.0.1
* @since 1.0.0
*/
public final class TimeAgoMessages {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Unit tests Class for TimeAgo usage.
*
* @author marlonlom
* @version 3.0.0
* @version 3.0.1
* @since 2.1.0
*/
@RunWith(JUnit4.class)
Expand Down

0 comments on commit 9675dec

Please sign in to comment.