ISOWeek 類別

定義

提供靜態成員以便支援 ISO 週日期,這是由國際標準組織 (ISO) 所發行 ISO 8601 日期和時間標準的一部分。Provides static members to support the ISO week date that is part of the ISO 8601 date and time standard issued by the International Organization for Standardization (ISO).

public ref class ISOWeek abstract sealed
public static class ISOWeek
type ISOWeek = class
Public Class ISOWeek
繼承
ISOWeek

方法

GetWeekOfYear(DateTime)

計算指定西曆日期的 ISO 週數。Calculates the ISO week number of a given Gregorian date.

GetWeeksInYear(Int32)

計算所指定 ISO 週編號年中的週數。calculates the number of weeks in a given ISO week-numbering year.

GetYear(DateTime)

計算對應至輸入西曆日期的 ISO 週編號年 (另外非正式地稱為 ISO 年)。Calculates the ISO week-numbering year (also called ISO year informally) mapped to the input Gregorian date.

GetYearEnd(Int32)

計算週編號年的西曆結束日期。Calculates the Gregorian date at which the week-numbering year will end.

GetYearStart(Int32)

計算週編號年的西曆開始日期。Calculates the Gregorian date at which the week-numbering year will start.

ToDateTime(Int32, Int32, DayOfWeek)

將以所指定 ISO 年、週數和星期幾表示的 ISO 週日期,對應至對等的西曆日期。Maps the ISO week date represented by a specified ISO year, week number, and day of week to the equivalent Gregorian date.

適用於