TextClassification.Request.Builder.SetReferenceTime(ZonedDateTime) 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.
Sets the reference time used to interpret relative dates.
[Android.Runtime.Register("setReferenceTime", "(Ljava/time/ZonedDateTime;)Landroid/view/textclassifier/TextClassification$Request$Builder;", "", ApiSince=28)]
public Android.Views.TextClassifiers.TextClassification.Request.Builder SetReferenceTime(Java.Time.ZonedDateTime? referenceTime);
[<Android.Runtime.Register("setReferenceTime", "(Ljava/time/ZonedDateTime;)Landroid/view/textclassifier/TextClassification$Request$Builder;", "", ApiSince=28)>]
member this.SetReferenceTime : Java.Time.ZonedDateTime -> Android.Views.TextClassifiers.TextClassification.Request.Builder
Parameters
- referenceTime
- ZonedDateTime
The reference time used to interpret relative dates. This should usually be the time when the text was originally composed. If it is not set, the current time is used.
Returns
This builder.
- Attributes
Remarks
Relative dates, such as "tomorrow," are interpreted using this reference time.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.