TimeUtils.GetDateTimeOffsetFromIso8601Week method

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

GetDateTimeOffsetFromIso8601Week(int, int)

Static

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

public static DateTimeOffset GetDateTimeOffsetFromIso8601Week(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 .

GetDateTimeOffsetFromIso8601Week(int, int, TimeSpan)

Static

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

public static DateTimeOffset GetDateTimeOffsetFromIso8601Week(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 .