EastAsianLunisolarCalendar.GetDayOfYear(DateTime) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定日期中年份的日期。
public:
override int GetDayOfYear(DateTime time);
public override int GetDayOfYear (DateTime time);
override this.GetDayOfYear : DateTime -> int
Public Overrides Function GetDayOfYear (time As DateTime) As Integer
參數
傳回
1 到 354 的整數 (一般年份中),或是 1 到 384 的整數 (閏年中),表示 time
參數中所指定之年份的日期。
備註
年份的日期定義為從年份的第一天起的天數。 例如, GetDayOfYear 針對第一個月的第一天會傳回 1,而 GetDayOfYear 針對最後一個月的最後一天,則會傳回該年份中的天數總數,也就是 所 GetDaysInYear傳回的相同值。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應