EssentialsPeriod.Yesterday method

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

Yesterday()

Static

Returns a EssentialsPeriod representing the the day before the current day and according to the local time zone.

public static EssentialsPeriod Yesterday()

Returns

Yesterday(TimeZoneInfo)

Static

Returns a EssentialsPeriod representing the the day before the current day and according to the timeZone.

public static EssentialsPeriod Yesterday(TimeZoneInfo timeZone)

Parameters

timeZone TimeZoneInfo

Returns

Yesterday(DateTimeOffset, TimeZoneInfo)

Static

Returns a EssentialsPeriod representing the the day before the day of timestamp and according to the timeZone.

public static EssentialsPeriod Yesterday(DateTimeOffset timestamp, TimeZoneInfo timeZone)

Parameters

timestamp DateTimeOffset

The timestamp.

timeZone TimeZoneInfo

The time zone.

Returns