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
An instance of EssentialsPeriod.
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
An instance of EssentialsPeriod.
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)
Returns
An instance of EssentialsPeriod.