Iso8601Utils.FromWeekNumber method

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

FromWeekNumber(int, int)

Static

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

public static DateTimeOffset FromWeekNumber(int year, int week)

Parameters

year int

The ISO 8601 year of the week.

week int

The ISO 8601 week number.

Returns

An instance of DateTimeOffset .

FromWeekNumber(int, int, TimeZoneInfo)

Static

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

public static DateTimeOffset FromWeekNumber(int year, int week, TimeZoneInfo timeZone)

Parameters

year int

The ISO 8601 year of the week.

week int

The ISO 8601 week number.

timeZone TimeZoneInfo

The time zone to convert the DateTimeOffset value to.

Returns

An instance of DateTimeOffset .

FromWeekNumber(int, int, TimeSpan)

Static

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

public static DateTimeOffset FromWeekNumber(int year, int week, TimeSpan offset)

Parameters

year int

The ISO 8601 year of the week.

week int

The ISO 8601 week number.

offset TimeSpan

The offset to convert the DateTimeOffset value to.

Returns

An instance of DateTimeOffset .