EssentialsPeriod.NextWeekend method

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

NextWeekend()

Static

Returns a EssentialsPeriod representing the upcoming weekend relative to the current day and according to the local time zone.

public static EssentialsPeriod NextWeekend()

Returns

NextWeekend(TimeZoneInfo)

Static

Returns a EssentialsPeriod representing the upcoming weekend relative to the current day and according to timeZone.

public static EssentialsPeriod NextWeekend(TimeZoneInfo timeZone)

Parameters

timeZone TimeZoneInfo

The time zone.

Returns

NextWeekend(DateTimeOffset, TimeZoneInfo)

Static

Returns a EssentialsPeriod representing the upcoming weekend relative to the specified timestamp and according to timeZone.

If timestamp represents a Saturday or a Sunday, the returned period will representing the weekend of the next week instead.

public static EssentialsPeriod NextWeekend(DateTimeOffset timestamp, TimeZoneInfo timeZone)

Parameters

timestamp DateTimeOffset

The timestamp.

timeZone TimeZoneInfo

The time zone.

Returns