Class TimeConversionUtils (2.87.0)

public class TimeConversionUtils

Inheritance

java.lang.Object > TimeConversionUtils

Static Methods

toJavaTimeDuration(@Nullable Duration source)

public static @Nullable Duration toJavaTimeDuration(@Nullable Duration source)
Parameter
Name Description
source @org.jspecify.annotations.Nullable org.threeten.bp.Duration
Returns
Type Description
@org.jspecify.annotations.Nullable java.time.Duration

toJavaTimeInstant(@Nullable Instant source)

public static @Nullable Instant toJavaTimeInstant(@Nullable Instant source)
Parameter
Name Description
source @org.jspecify.annotations.Nullable org.threeten.bp.Instant
Returns
Type Description
@org.jspecify.annotations.Nullable java.time.Instant

toThreetenDuration(@Nullable Duration source)

public static @Nullable Duration toThreetenDuration(@Nullable Duration source)
Parameter
Name Description
source @org.jspecify.annotations.Nullable java.time.Duration
Returns
Type Description
@org.jspecify.annotations.Nullable org.threeten.bp.Duration

toThreetenInstant(@Nullable Instant source)

public static @Nullable Instant toThreetenInstant(@Nullable Instant source)
Parameter
Name Description
source @org.jspecify.annotations.Nullable java.time.Instant
Returns
Type Description
@org.jspecify.annotations.Nullable org.threeten.bp.Instant

Constructors

TimeConversionUtils()

public TimeConversionUtils()