Skip to content

Commit

Permalink
Add/update since tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed May 30, 2018
1 parent 4aebe7a commit a7e1672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/joda/time/Duration.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public Duration negated() {
* This instance is immutable and is not altered.
*
* @return the absolute duration instance
* @since 2.10
*/
public Duration abs() {
if (getMillis() < 0) {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/joda/time/Instant.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public final class Instant

/**
* The Java epoch of 1970-01-01T00:00:00Z.
* @since 2.10
*/
public static final Instant EPOCH = new Instant(0L);

Expand All @@ -83,7 +84,7 @@ public static Instant now() {
* Obtains an {@code Instant} set to the milliseconds from 1970-01-01T00:00:00Z.
*
* @param epochMilli the milliseconds from 1970-01-01T00:00:00Z
* @since 3.0
* @since 2.10
*/
public static Instant ofEpochMilli(long epochMilli) {
return new Instant(epochMilli);
Expand All @@ -94,7 +95,7 @@ public static Instant ofEpochMilli(long epochMilli) {
*
* @param epochSecond the seconds from 1970-01-01T00:00:00Z
* @throws ArithmeticException if the new instant exceeds the capacity of a long
* @since 3.0
* @since 2.10
*/
public static Instant ofEpochSecond(long epochSecond) {
return new Instant(FieldUtils.safeMultiply(epochSecond, 1000));
Expand Down

0 comments on commit a7e1672

Please sign in to comment.