EssentialsPeriod.ThisWeek method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
ThisWeek()
Static
Returns a EssentialsPeriod representing the current week, according to the local time zone.
public static EssentialsPeriod ThisWeek()
Returns
An instance of EssentialsPeriod.
ThisWeek(TimeZoneInfo)
Static
Returns a EssentialsPeriod representing the current week, according to the specified timeZone
.
public static EssentialsPeriod ThisWeek(TimeZoneInfo timeZone)
Parameters
timeZone
TimeZoneInfo
The time zone.
Returns
An instance of EssentialsPeriod.
ThisWeek(DateTimeOffset, TimeZoneInfo)
Static
Returns a EssentialsPeriod representing the week of timestamp
and according to timeZone
.
public static EssentialsPeriod ThisWeek(DateTimeOffset timestamp, TimeZoneInfo timeZone)
Returns
An instance of EssentialsPeriod.