EssentialsPeriod Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll
Visibility Public
Inheritance Object

Class describing a period defined by a EssentialsPeriod.Start date and EssentialsPeriod.End date.

public class EssentialsPeriod { }

Properties

Type Name Summary
EssentialsTime Start

Gets a reference to the timestamp representing the start of the period.

bool HasStart

Gets whether the EssentialsPeriod.Start property has a value.

EssentialsTime End

Gets a reference to the timestamp representing the end of the period.

bool HasEnd

Gets whether the EssentialsPeriod.End property has a value.

Methods

NextWeekend() (static)

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

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

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.

ThisMonth() (static)

Returns a EssentialsPeriod representing the current month, according to the local time zone.

Returns a EssentialsPeriod representing the current month, according to the specified timeZone.

Returns a EssentialsPeriod representing the month of dto and according to timeZone.

ThisWeek() (static)

Returns a EssentialsPeriod representing the current week, according to the local time zone.

Returns a EssentialsPeriod representing the current week, according to the specified timeZone.

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

Today() (static)

Returns a EssentialsPeriod representing the current day from start to end, according to the local time zone.

Returns a EssentialsPeriod representing the current day from start to end, according to the specified timeZone.

Returns a EssentialsPeriod representing the day of timestamp from start to end, according to timeZone.

Tomorrow() (static)

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

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

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

Yesterday() (static)

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

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

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