Clock.Offset(Clock, Duration) Method

Definition

Obtains a clock that returns instants from the specified clock with the specified duration added.

[Android.Runtime.Register("offset", "(Ljava/time/Clock;Ljava/time/Duration;)Ljava/time/Clock;", "", ApiSince=26)]
public static Java.Time.Clock? Offset(Java.Time.Clock? baseClock, Java.Time.Duration? offsetDuration);
[<Android.Runtime.Register("offset", "(Ljava/time/Clock;Ljava/time/Duration;)Ljava/time/Clock;", "", ApiSince=26)>]
static member Offset : Java.Time.Clock * Java.Time.Duration -> Java.Time.Clock

Parameters

baseClock
Clock

the base clock to add the duration to, not null

offsetDuration
Duration

the duration to add, not null

Returns

a clock based on the base clock with the duration added, not null

Attributes

Remarks

To be added.

Java reference for java.time.Clock.offset.

Applies to