Period.Of(Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得代表若干年、月和天的期間。
[Android.Runtime.Register("of", "(III)Ljava/time/Period;", "", ApiSince=26)]
public static Java.Time.Period? Of(int years, int months, int days);
[<Android.Runtime.Register("of", "(III)Ljava/time/Period;", "", ApiSince=26)>]
static member Of : int * int * int -> Java.Time.Period
參數
- years
- Int32
年數,可能是負數
- months
- Int32
月數,可能是負數
- days
- Int32
天數,可能是負數
傳回
是指年、月、天的期間,而非無效
- 屬性
備註
取得代表若干年、月和天的期間。 這會建立一個基於年份、月份和天數的實例。