ISOWeek.GetWeeksInYear(Int32) Metodo

Definizione

Calcola il numero di settimane in un determinato anno con numerazione delle settimane ISO.

C#
public static int GetWeeksInYear (int year);

Parametri

year
Int32

Anno con numerazione delle settimane ISO, detto anche anno ISO informalmente.

Restituisce

Il numero di settimane ISO nell'anno. Restituisce 52 o 53.

Si applica a

Prodotto Versioni
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1