Clock.Offset(Clock, Duration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.