InstantMethods

final implicit class InstantMethods(instant: Instant) extends AnyVal

Provides extension methods for java.time.Instant

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def +(amount: TemporalAmount): Instant

Gets instant with specified amount added.

Gets instant with specified amount added.

Value parameters:
amount

temporal amount

def -(amount: TemporalAmount): Instant

Gets instant with specified amount subtracted.

Gets instant with specified amount subtracted.

Value parameters:
amount

temporal amount

def max(other: Instant): Instant

Compares to other instant and returns the greater value.

Compares to other instant and returns the greater value.

Value parameters:
other

other instant

def min(other: Instant): Instant

Compares to other instant and returns the lesser value.

Compares to other instant and returns the lesser value.

Value parameters:
other

other instant