EssentialsMonth.GetMonths method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

GetMonths(int, int, int)

Static

Returns an array with the months from startYear and startMonth.

Start and end dates of each month are calculated based on System.TimeZoneInfo.Local.

public static EssentialsMonth[] GetMonths(int startYear, int startMonth, int months)

Parameters

startYear int

The year of the starting month.

startMonth int

The starting month.

months int

The amount of month, including the start month.

Returns

Array of EssentialsMonth

An array of EssentialsMonth.

GetMonths(int, int, int, TimeZoneInfo)

Static

Returns an array with the months from startYear and startMonth.

Start and end dates of each month are calculated based on timeZone.

public static EssentialsMonth[] GetMonths(int startYear, int startMonth, int months, TimeZoneInfo timeZone)

Parameters

startYear int

The year of the starting month.

startMonth int

The starting month.

months int

The amount of month, including the start month.

timeZone TimeZoneInfo

The time zone to be used for calculating the start and end dates.

Returns

Array of EssentialsMonth

An array of EssentialsMonth.