EssentialsPeriod Class
| 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. |
|
NextWeekend(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the upcoming weekend relative to the current day and
according to |
|
Returns a EssentialsPeriod representing the upcoming weekend relative to the specified
If |
|
ThisMonth()
(static)
Returns a EssentialsPeriod representing the current month, according to the local time zone. |
|
ThisMonth(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the current month, according to the specified |
|
Returns a EssentialsPeriod representing the month of |
|
ThisWeek()
(static)
Returns a EssentialsPeriod representing the current week, according to the local time zone. |
|
ThisWeek(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the current week, according to the specified |
|
Returns a EssentialsPeriod representing the week of |
|
Today()
(static)
Returns a EssentialsPeriod representing the current day from start to end, according to the local time zone. |
|
Today(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the current day from start to end, according to the specified |
|
Today(DateTimeOffset, TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the day of |
|
Tomorrow()
(static)
Returns a EssentialsPeriod representing the the day after the current day and according to the local time zone. |
|
Tomorrow(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the the day after the current day and according to
the |
|
Returns a EssentialsPeriod representing the the day after the day of
|
|
Yesterday()
(static)
Returns a EssentialsPeriod representing the the day before the current day and according to the local time zone. |
|
Yesterday(TimeZoneInfo)
(static)
Returns a EssentialsPeriod representing the the day before the current day and according to
the |
|
Returns a EssentialsPeriod representing the the day before the day of
|